![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
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 ! |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
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. ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |