Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Forced action

Forced action
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2006
Status: Offline
Reply With Quote
May 1, 2006, 05:47 AM
 
People who google for content of one of my websites ended up entering the wrong page(20% of the time). When an anonym user click on the link, pointed to the wrong page in google search results, is it possible to direct the user to the correct page? What is the code I should include?

Any help would be appreciated.

TIA
     
Senior User
Join Date: Jul 2004
Status: Offline
Reply With Quote
May 2, 2006, 05:42 PM
 
If your host allows .htaccess files and you have apache you can use a redirect.

Code:
#Redirect links RedirectMatch permanent ^/BADLINK GOODLINK
so an example would be

Code:
#Redirect links RedirectMatch permanent ^/thispage.html thatpage.html
if it is a folder you need a $ at the end of the bad link.
You shouldn't make fun of nerds... you'll be working for one some day.
     
Fresh-Faced Recruit
Join Date: Jul 2006
Status: Offline
Reply With Quote
May 11, 2006, 04:38 PM
 
Hi jay3ld,

Thanks for the tip. Will try it.
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 10:47 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2