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
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 03-27-2005, 11:52 PM   #1
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Damn people, href="members" is a FILE. href="/members/" is a directory

Well I'm currently doing a search and replace
on the 3rd site today, fixing thousands
of html pages where the webmaster didn't
know how to come up with a correct URL.
So in case anyone reading this doesn't know,
you'll know now. A link like this tries to find
a FILE called "members":
a href="members"
If you want the index page of a directory called "members/" you need the traling slash:
a href="members/"

Many servers are configured to catch this mistake
and redirect the user back to members/ instead.
In the best case, that means that it generates twice as many hits every time someone loads that page. First they ask for members, then the
server tells them to head over to http://yousite.com/members/
instead, then the browser sends another
request for members/.
In the worst case, it can fuck up a lot of shit.
For example that redirect won't work properly
with most of your anti-hotlinking code
or AVS site .htaccess.
So if you didn't know before, now you know if
you're linking to a directory (to get it's index page)
you must end the URL with a slash (/).
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-27-2005, 11:54 PM   #2
Xplicit
Confirmed User
 
Xplicit's Avatar
 
Join Date: May 2003
Location: █◄►█
Posts: 3,558
Ok
Xplicit is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-27-2005, 11:57 PM   #3
bringer
i have man boobies
 
bringer's Avatar
 
Join Date: Jul 2003
Location: van down by the river
Posts: 13,082
blah blah blah
__________________
333-765-551
bringer is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2005, 01:35 AM   #4
colpanic
Confirmed User
 
Join Date: May 2004
Location: San Diego, CA
Posts: 1,007
Well, members could be a cgi script with / as pathinfo.

But I'm just being a pain in the ass, you are 99% right

__________________
I like ducks.
colpanic is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2005, 01:53 AM   #5
emthree
Dialer Kingpin
 
Join Date: Jun 2003
Location: New York
Posts: 10,816
What are you using to mass replace?
I have some shit I need to edit too. I'm thinking of purchasing MTR(Mass Text Replacer)
__________________

Sell Patches & Pills
emthree is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2005, 01:57 AM   #6
kaktuz
Confirmed User
 
kaktuz's Avatar
 
Industry Role:
Join Date: Sep 2004
Location: Dream Land
Posts: 2,422
how bout text editor?
or its a tgext to replace mass PAGES?
__________________
EMAIL: admin [AT] kaktuz.com
Need Loads of Traffic? Lets Make Business Today!
kaktuz is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2005, 10:18 AM   #7
raymor
Confirmed User
 
Join Date: Oct 2002
Posts: 3,745
Quote:
Originally Posted by emthree
What are you using to mass replace?
I have some shit I need to edit too. I'm thinking of purchasing MTR(Mass Text Replacer)
As a Linux geek, I use:

find members/ -name '*.html' -print -exec perl -i.bak -p -e "s@members"@members/"@ig" {} \;
Adjusted of course for whatever site I'm working on.
__________________
For historical display only. This information is not current:
support@bettercgi.com ICQ 7208627
Strongbox - The next generation in site security
Throttlebox - The next generation in bandwidth control
Clonebox - Backup and disaster recovery on steroids
raymor is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-28-2005, 11:17 AM   #8
Radiate
Confirmed User
 
Join Date: Dec 2004
Location: the center
Posts: 1,454
tis good info many peeps don't know this
__________________

icq 199437756 - contact me if you need a solid hosting solution
Radiate is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2005, 02:20 PM   #9
emthree
Dialer Kingpin
 
Join Date: Jun 2003
Location: New York
Posts: 10,816
Quote:
Originally Posted by raymor
As a Linux geek, I use:

find members/ -name '*.html' -print -exec perl -i.bak -p -e "s@members"@members/"@ig" {} \;
Adjusted of course for whatever site I'm working on.
__________________

Sell Patches & Pills
emthree is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2005, 02:53 PM   #10
emthree
Dialer Kingpin
 
Join Date: Jun 2003
Location: New York
Posts: 10,816
Quote:
Originally Posted by kaktuz
how bout text editor?
or its a tgext to replace mass PAGES?
Well, when replacing multiple files most text editors cannot do the trick.
MTR is golden when it comes to replacing multiple lines, across multiple files on Windows. The only downside is the company seems to be undermanaged.
__________________

Sell Patches & Pills
emthree is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 03-29-2005, 03:51 PM   #11
Luc
Confirmed User
 
Join Date: Nov 2002
Location: Houston
Posts: 1,130
what is a file?
Luc 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



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.