homepage Welcome to WebmasterWorld Guest from 54.198.46.115
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Visit PubCon.com
Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
Forum Library, Charter, Moderators: phranque

Website Technology Issues Forum

    
Need wildcard redirects
htaccess, redirects
tmccar




msg:4281416
 2:38 pm on Mar 14, 2011 (gmt 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?

 

g1smd




msg:4281421
 2:40 pm on Mar 14, 2011 (gmt 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.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Website Technology Issues
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved