I have just uploaded a site which worked perfectly on one host to another and the .htaccess file with the rewrite rule doesn't work.
On the live location, the .htaccess
file has this in it:
Options +FollowSymLinks
RewriteEngine on
RewriteRule ^([A-Za-z\-0-9]+)$ index.php?page=$1 [QSA]
ErrorDocument 404 /index.php
This should rewrite the URLs from
www.mysite.co.uk/?page=about
To:
www.mysite.co.uk/about
When I try it on the new host it throws an error in the browser:
Internal Server Error, this is an error with your script, check your error log for more information.
When I check the error log it says:
[Fri May 30 10:51:53 2014] [alert] [client 87.127.116.49] /domains/m/i/mysite.co.uk/public_html/.htaccess: RewriteRule: cannot compile regular expression '^([A-Za-z\\-0-9]+)$'\n
Can anyone help?