Forum Moderators: phranque
I can't seem to get this to work? Is there a rule for directories with multiple underscores?
RewriteEngine On
RewriteRule ^higher_level_program/learn_more\.php$ [mysite.com...] [R=301,L]
#
RewriteRule ^higher_level_program/learn_more\.php$ [mysite.com...] [R=301,L]
#
You can usually see your server version by using the "Live HTTP Headers" add-on for Firefox and Mozilla browsers. The server info is usually included in every response to any HTTP request to your server. This add-on should be part of any Webmaster's basic toolkit.
If you have other rules in this same .htaccess file that work, the path to this .htaccess file is "example.com/.htaccess", and the "old" URL is "example.com/higher_level_program/learn_more\.php", then the likely problem is that some other rule preceding this one also matches the "old URL" and rewrites it before you ever get to this rule. There isn't anything wrong with the rule you posted, so the problem is elsewhere.
Jim