Forum Moderators: phranque

Message Too Old, No Replies

Mod rewrite work only on one particular server

         

asyarief

6:43 am on Jan 24, 2005 (gmt 0)

10+ Year Member



Hi,

I have a website that use mod rewrite and its working fine. Then, I re-create the same site on different host/server but this time the mod rewrite isn't working. Is there any configuration on the server that will enable mod rewrite using .htaccess? Here's how my .htaccess code look like :

RewriteEngine On
RewriteRule ^index.html$ index.php

Thanks in advance for your help.

jdMorgan

6:52 pm on Jan 24, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Server configuration differences can be great. When "your code doesn't work", do you get an error message in your server error log? This would be a great help to find the problem.

You can also try adding

Options +FollowSymLinks

ahead of your RewriteEngine on directive.

Apache mod_rewite must be loaded and you'll need to have AllowOverride and Options configured correctly in httpd.conf.

If none of these suggestions help, contact your host.

Jim