Thanks, David.
I put the two line in the http.conf file (within the <VirualHost *> tag)
Then, restart the Apache server and no error.
However, when I try the rewrite URL, it says error 404.
What should I check now?
Main Topics
Browse All TopicsI have a php file will generate dynamic pages by different parameter:
http://www.mydomain.com/ph
http://www.mydomain.com/ph
I want to replace the above URLs by the followings:
http://www.mydomain.com/ph
http://www.mydomain.com/ph
(But actually, I don't have the photos/car/index.php file in the server)
Is it possible to rewrite like this?
I think it is quite diffcult, it would be great appreciated if also tell me how to do it :)
Please advise. Thanks.
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The HTTP 404 error is document not found.
The rule is OK the problem is with it's destination.
In this links
http://www.mydomain.com/ph
http://www.mydomain.com/ph
the car and bulding are directories ??
if yes you must add an ending slash into the destination so the rule will be like this
RewriteEngine on
RewriteRule ^/photos.php?category=(.*)
david
I changed the "AllowOverride None" to "AllowOverride All", then restart apache.
After that, I add the these 2 line into the .htaccess file:
RewriteEngine On
RewriteRule ^photos/(.*) /photos.php?category=$1
Now, it is working. But, because I using <VirtualHost> for several sites, what is the security implication for chageing to "AllOverride All" that I should consider?
Thanks.
Business Accounts
Answer for Membership
by: kalosiPosted on 2003-10-29 at 23:00:58ID: 9648156
Yes, the rewrite engine is meant exactly for this
$ /photos/$1
here is the rule
RewriteEngine on
RewriteRule ^/photos.php?category=(.*)
david