homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Type of headers for a outbound link record and redirect page

5+ Year Member

Msg#: 3595381 posted 12:56 am on Mar 9, 2008 (gmt 0)

I redirect all outbound links from my site to a dynamic php page which records key metrics into a database before redirecting the user to the requested page.

I use a rewrite rule in my .htaccess file to make these outbound links shortened, with all these "links" and the php page the links get processed through being located in a folder excluded from my robots.txt file.

My question is, what kind of header should my PHP page have?

Also, how might I exclude these links from being listed in the search engines, and should I have any special of redirect being used in my .htaccess file?




WebmasterWorld Senior Member whoisgregg us a WebmasterWorld Top Contributor of All Time 10+ Year Member

Msg#: 3595381 posted 12:33 pm on Mar 10, 2008 (gmt 0)

You'd want to use a 301 header... Anything else is going to cause problems for search engines and users.

As far as exclusion, just block the redirect script in your robots.txt.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
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