Welcome to WebmasterWorld Guest from 54.167.86.132

Forum Moderators: phranque

Message Too Old, No Replies

Need wildcard redirects

htaccess, redirects

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

New User

5+ Year Member

joined:Sept 10, 2009
posts:11
votes: 0


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?
2:40 pm on Mar 14, 2011 (gmt 0)

Senior Member

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

joined:July 3, 2002
posts:18903
votes: 0


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.
 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members