Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 11-28-2005, 10:27 AM   #1
kenny
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 7,245
Is this possible?

to change where links go by using .htaccess

basicly I want to change sponsor links without manually going through it thousands of times.
__________________
7
kenny is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2005, 10:32 AM   #2
jaa666
Registered User
 
Join Date: Nov 2005
Location: UK
Posts: 38
You can do that by using custom php scripts.

by .htaccess you can control other things that are taking place before the page is being displayed to the surfer
__________________
I buy mainstream traffic - UK, France, Italy, Spain, Ireland, Japan and China. We can arrange nice deals on chinese traffic that is useless for your website. Get your advantage now! Contact me - jaa666 at gmail dot com !
jaa666 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2005, 10:59 AM   #3
kenny
Confirmed User
 
Industry Role:
Join Date: Mar 2002
Posts: 7,245
Do you think If I ran this on the command line it would be alright?


find directory -name '*.html' -exec perl -pi -e 's/old_sponsor_url/new_sponsor_url/g' {} \;

I have used it for small amounts of replacing

If I ran this through gigs of files I'm afraid it could crash the server or fuck something up some how
__________________
7
kenny is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 11-28-2005, 11:06 AM   #4
Tom_PM
Porn Meister
 
Industry Role:
Join Date: Feb 2005
Posts: 16,443
Perl was made to be efficient in such things. Why not call your host and tell a tech you are about to run a scary command, so please stand near the reboot switch. Then go for it. (after you have backed it all up obviously)

You COULD use htaccess if you really really wanted to.
Pass the referring URI as a query string to a custom script, parse it,if not replaced yet, replace, save, serve to browser.

That would be a heavier load on the server in the long run though from the looks of it.
__________________
43-922-863 Shut up and play your guitar.
Tom_PM is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.