I am setting my new Apache server. However, it has the mod_rewirte prolbem. Please help me!!! The httpd.conf file's config <VirtualHost ip:80> DocumentRoot /home/user/public_html ServerName www.domain.com RewriteEngine On RewriteLog "/home/user/public_html/rewrite.log" RewriteLogLevel 9 <Directory "/home/user/public_html"> AllowOverride ALL </Directory> </VirtualHost> The .htaccess in /home/user/public_html Options +FollowSymLinks Options +Indexes RewriteRule test.html test2.html [L] The test.html will show "No working" The tes2.html will show "working" Every time I access test.html, it will show "No working" What is the prolbem??
Again, I dunno about the hpppd.conf. But, what if ya inculde the folder? RewriteEngine on RewriteBase / RewriteRule test.html test2.html [L] This means the file is in the root folder. I'm not a mod-rewrite expert by any means, but have pulled a few off.
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^test\.html$ test2.html [L] test.html being the fake URL and test2.html being the real URL.