Welcome to WebmasterWorld Guest from 184.108.40.206
The original URL that we want to redirect is structured
We put in the HTACCESS FILE:
redirect 301 /Computer_Services/PC_Repair.php http://www.example.com/New_York/Long_Island/Repair_Service/New_York_Repair.html
HOWEVER IT LEADS ME TO THE:
The Ideal redirect would have the link READ:
How can one go about doing this?
[edited by: jdMorgan at 4:34 pm (utc) on Oct. 21, 2009]
[edit reason] example.com [/edit]
In mod_rewrite, you must use a RewriteCond to examine/test the query string, if you only want to redirect based on a specific URL+query value. From your mod_alias code above, it appears that you may wish to redirect without regard to the requested query string, so this may not be necessary.
So your URL-path-pattern should probably start with "^Computer_Services/" as it did in your original code.
Please do not change the URLs cited here unless the originals were wrong. We need good example URLs, and we need to know where your code is located. If either change, then the code must change.
From the description of your goal, you certainly do not want to use the "QSA" flag...
Also, if you do not have other working rewriterules, you'll need one or two more directives to set up and enable mod_rewrite.