Forum Moderators: phranque
This is my first post, I am really excited ;)
I am working for a client and I need to do some URL rewriting for SEO purposes. Basically, the server is using Apache - PHP. I have created a .htaccess file to rewrite .htm to .php, the simple .htaccess that runs everywhere... Except on this server.
Find a copy of my .htaccess file below:
RewriteEngine on
RewriteRule (.*).htm$ /$1.php
What could be the best way to check if the mod_rewrite in on? Is it ok to mention the name of the hosting company?
Many thanks
Matsuibiza
Of youre on a dedicated box you can set .htaccess as an "over-ride" file.
IF YOU MAKE ANY CHANGED TO YOUR HTTPD.CONF FILE ALWAYS BACK IT UP BEFORE YOU DO SO!
On your httpd.cong filne this directive...
AccessFileName directive
make sure the following is set
AccessFileName .htaccess
In short this is telling Apache to accept modifications to it's configuration based on .htaccess files
Also note .htaccess is an Apache concept, and will not work on non apache servers.
Mack.