Sonu Ahmad
Sonu Ahmad

Reputation: 29

RewriteRule giving 500 Internal Server Error

I am having trouble in RewriteRule its giving me 500 Internal Server Error bellow is my code in .htaccess file:

RewriteEngine on

RewriteRule ^About-Us.php$ page.php?title=About Us [NC,L]

And here is my server php info link you can check if there is something need to do from my hosting.

http://travelinsure.ca/seo_links.php

Any suggestions please ?

Many Thanks, Sonu Ahmad

Upvotes: 1

Views: 124

Answers (1)

Jon Lin
Jon Lin

Reputation: 143966

You have a space between About and Us, which is making mod_rewrite interpret it as a delimiter for the "rewrite flags". Try escaping it:

RewriteRule ^About-Us.php$ page.php?title=About\ Us [NC,L]

Upvotes: 2

Related Questions