pajiao
asked on
Hiding pages without extensions or filename
Hi,
I am using PHP 4.3.4, Apache 2.0.48 and Redhat 9.
There are many websites that does not seem to have a filename or extension such as .php, .jsp etc. Eg: http://www.domain.com/webpage?string=xx
or some sites even have the filename and extension missing!
Eg: http://www.domain.com/webpage/?string=xx
I would like to know how can i do this on apache and what are the changes i need to make on my scripts.
Thanks
I am using PHP 4.3.4, Apache 2.0.48 and Redhat 9.
There are many websites that does not seem to have a filename or extension such as .php, .jsp etc. Eg: http://www.domain.com/webpage?string=xx
or some sites even have the filename and extension missing!
Eg: http://www.domain.com/webpage/?string=xx
I would like to know how can i do this on apache and what are the changes i need to make on my scripts.
Thanks
use Alias, see http:Q_20776384.html to learn more details
ASKER
Thanks yuzh,
The solution will need to specify alias for every page involved and it will be a hassle for huge sites. How can i do it without specifying it manually and getting it to direct by itself?
thanks
The solution will need to specify alias for every page involved and it will be a hassle for huge sites. How can i do it without specifying it manually and getting it to direct by itself?
thanks
ASKER
I found a link which does similiar to what i want using mod_rewrite but i need to specify for every page that exists. Is there an dynamic method?
Here is the link:
http://www.phpfreaks.com/tutorials/23/0.php
Here is the link:
http://www.phpfreaks.com/tutorials/23/0.php
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Any examples mrielf?
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.