Home » Htaccess Tools » Questions regarding htaccess » redirect, but keep the same address in bar?
redirect, but keep the same address in bar? [message #559] Wed, 06 September 2006 17:27 Go to next message
ccromp  is currently offline ccromp
Messages: 1
Registered: September 2006
Using htaccess, is it possible to have a link such as this:
http://www.mydomain.com/keyword-special.php

actually display a page from this url:
http://www.mydomain.com/m/keyword

Where the php file doesn't actually exist and the browser still displays the Using "php" address?

Thanks!

Chris
redirect, but keep the same address in bar? [message #576] Tue, 19 September 2006 10:44 Go to previous message
andreas  is currently offline andreas
Messages: 239
Registered: January 2005
Location: Denmark

Site Admin
Yes that is possible. The easiest is to create the php file and just include the page in the php file using include(). Ie

<?php
include('m/keywork.html');
?>
Previous Topic:Allow access to directory
Next Topic:how to do redirect and standardise URL at the same time
Goto Forum:
  


Current Time: Sat May 17 07:43:29 CEST 2008

Powered by: FUDforum 2.7.7.
Copyright ©2001-2007 FUD Forum Bulletin Board Software