Welcome to WebmasterWorld Guest from 54.167.58.159

Forum Moderators: phranque

Message Too Old, No Replies

Need wildcard redirects

htaccess, redirects

     

tmccar

2:38 pm on Mar 14, 2011 (gmt 0)

5+ Year Member



A lot of my blog pages listed in Google Webmaster Tools end like this:
www.mydomain.com/links.php (this comes after the full link to the post). They are giving "not found" errors. I'm not sure why this is and I don't want it. How can I redirect these links (using .htcaccess) so that this last bit is cut off?

g1smd

2:40 pm on Mar 14, 2011 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



RewriteRule ^(backreference)pattern http://www.example.com/$1 [R=301,L]


The Regular Expression needed to capture the backreference and for the pattern of what needs to be cleared in the redirect isn't clear from the description of the URLs involved.