- - Code, Content, and Presentation
- -- Apache Web Server
- ---- 301 for ridiculous URLs
timstaines - 8:30 pm on May 14, 2013 (gmt 0)
So I've got everything 301ing functionally at the moment, but I'm going to go back and replace the RedirectMatch with RewriteRules as long as that doesn't mess things up.
Here's the weird thing. This rule:
RedirectMatch 301 /index.cfm/fuseaction/site.physicians/(.*) http://www.example.com/page-name-1/
...appears to be redirecting this page:
I was expecting this rule:
RedirectMatch 301 /index.cfm/fuseaction/site.locations/(.*) http://www.example.com/page-name-2/
...to apply to that URL.
Is the RedirectMatch directive just matching whatever segment of the URL that fits? I was expecting it to trigger when it matched only the first segment of the URL.
Thread source: http://www.webmasterworld.com/apache/4573515.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com