Does Hostgator supports mod_rewrite or can you please suggest any host that support this. I already have 3 webhost but they don't support mod_rewrite so I can't use some scripts that I bought.
Yeah I thought most webhost supports it, but I tried 3 different hosting companies and they don't support it. They say they support it but when I install my script it doesn't work. I can edit .htaccess but the friendly urls won't work.
It's a pretty simple question for a host, so if they say they support it, and if it hasn't worked with three hosts, I think you might be doing something wrong.
You could either go to another company that says mod_rewrite is enabled. I don't like hostgator for my own personal reasons but if that is your only option I think you should take it.
Put this into your .htaccess: RewriteEngine On RewriteCond %{HTTP_HOST} ^yourdomain\.com$ [NC] RewriteRule ^(.*)$ http://www.yourdomain.com/$1 [R=301,L] (Replace "yourdomain" with your actual domain and extension. The go to http://yourdomain.com without using the "www" If it automatically rewrites the url to include the "www" then you know mod_rewrite is enabled.