Link to home
Start Free TrialLog in
Avatar of pajiao
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
Avatar of yuzh
yuzh

use Alias, see http:Q_20776384.html to learn more details
Avatar of pajiao

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
Avatar of pajiao

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
ASKER CERTIFIED SOLUTION
Avatar of mrielf
mrielf

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of pajiao

ASKER

Any examples mrielf?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial