Forum Moderators: phranque
In httpd.conf under VirtualHost:
RewriteEngine on
RewriteRules ^fd(.*)\.html /fd.php
or
AliasMatch ^/fd(.*)\.html /home/username/public_html/fd.php
It works in both ways. I do not neet to rewrite the parameters as I can get them from the server variables in fd.php.
Is AliasMatch easier for apache and therefore faster because mod_rewrite offers much more complexity?
Almost all pages from the concerning domain are called from the same directory. So I assume it's pretty indeifferent wether I put the rewrite rules or AliasMatch in the VirtualHost section or in a Directory section.
Thanks
Note that if you don't use mod_rewrite for /anything/, you can comment it out of your httpd.conf completely which will result in a (very slight) increase in overall server performance.