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 04-10-2009, 07:32 PM   #1
Mr Pheer
So Fucking unBanned
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Las Vegas
Posts: 21,743
Can I get some htaccess help, please?

Ok, here is the problem...

domain.com/blah works
domain.com/blah/ goes to 404 - not good

help?
__________________
WebIgniter AI
Multitime 7-figure producer and 29 year Niche Industry Veteran
Mr Pheer is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 07:40 PM   #2
Ice
Confirmed User
 
Ice's Avatar
 
Join Date: Nov 2002
Location: Sunny California
Posts: 26,053
Ok I was going to try to help but I think this is beyond me.

If domain.com/blah works but domain.com/blah/ doesn't. What can't you just keep it as domain.com/blah

If you can't because there are multiple folders... why can't you just do...

domain.com/blah/folder1
domain.com/blah/folder2

So it still works. Now if you have 100's of folders I understand why you wouldn't want to do that, which is why I said it's beyond my knowledge of htaccess.
__________________
icq 1904905
Ice is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 07:43 PM   #3
split_joel
Confirmed User
 
Join Date: Jan 2005
Posts: 2,270
Quote:
Originally Posted by Mr Pheer View Post
Ok, here is the problem...

domain.com/blah works
domain.com/blah/ goes to 404 - not good

help?
contact me on aim you should know better
__________________
E-mail marketing - Automation Scripting - IP Space
AIM: splitjoelp ICQ: 254759453 skype - splitjoelp 702-941-6465
split_joel is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 07:47 PM   #4
Sam Granger
Confirmed User
 
Sam Granger's Avatar
 
Join Date: Dec 2004
Location: NL (Eindhoven), CZ(Prague), FR(Concarneau)
Posts: 3,958
Post your htaccess
__________________
[img]http://****************/sig/fhv3_j2_624x80_2.gif[/img]
$35-40 Per Signup, 60-70% Rev Share, over 80 Sites, Exclusive Sites, tons of free content
14,000+ Free hosted Galleries, RSS feeds, Domain Hosting, Embedded Flash Movies
Join Fetish Hits now!
ICQ: 358652230
Sam Granger is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 08:03 PM   #5
Juggernaut
Confirmed User
 
Join Date: Jan 2003
Location: Brisbane, Australia
Posts: 753
Even people like myspace have this very same problem, you're not alone.

Code:
RewriteEngine On 

RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$ 
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]

This makes the slash always appear and redirects to the slash version without.
Juggernaut is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 08:29 PM   #6
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
quuuack.
Google doesn't care, why do you?
- not good. for whom ?

Last edited by 2012; 04-10-2009 at 08:30 PM.. Reason: do'h
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 08:40 PM   #7
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
Quote:
Originally Posted by Juggernaut View Post
Even people like myspace have this very same problem, you're not alone.

Code:
RewriteEngine On 

RewriteCond %{REQUEST_URI} ^/[^\.]+[^/]$ 
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]

This makes the slash always appear and redirects to the slash version without.
maybe don't want to do that ? Wordpress handles it nicely.

bump for the masters
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 09:23 PM   #8
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
/

do'h

if this is your rule.
RewriteRule ^([^/\.]+)$ index.php?shitsicles=$1 [L]

just make another rule with '/'
RewriteRule ^([^/\.]+)/$ index.php?shitsicles=$1 [L]

update all your other rules
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 09:25 PM   #9
Spunky
I need a beer
 
Spunky's Avatar
 
Industry Role:
Join Date: Jun 2002
Location: ♠ Toiletville ♠
Posts: 133,961
Just buyanother one,baller
__________________
Spunky is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 10:21 PM   #10
Mr Pheer
So Fucking unBanned
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Las Vegas
Posts: 21,743
Quote:
Originally Posted by fartfly View Post
quuuack.
Google doesn't care, why do you?
- not good. for whom ?
because I have alot of links going to the trailing slash and now they 404
__________________
WebIgniter AI
Multitime 7-figure producer and 29 year Niche Industry Veteran
Mr Pheer is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 10:22 PM   #11
Mr Pheer
So Fucking unBanned
 
Mr Pheer's Avatar
 
Industry Role:
Join Date: Dec 2002
Location: Las Vegas
Posts: 21,743
thanks for the help guys
__________________
WebIgniter AI
Multitime 7-figure producer and 29 year Niche Industry Veteran
Mr Pheer is online now   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 11:13 PM   #12
Steve Awesome
Confirmed User
 
Steve Awesome's Avatar
 
Industry Role:
Join Date: Jan 2007
Location: Mid-West!
Posts: 1,575
Mod Rewrite fucking kicks ass.
Steve Awesome is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 11:26 PM   #13
Juggernaut
Confirmed User
 
Join Date: Jan 2003
Location: Brisbane, Australia
Posts: 753
Quote:
Originally Posted by fartfly View Post
maybe don't want to do that ? Wordpress handles it nicely.

bump for the masters
You should point to one not both. Having a uniform file structure works better than showing the same content from multiple page locations.

I don't use word press.
Juggernaut is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 11:34 PM   #14
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
Quote:
Originally Posted by Juggernaut View Post
You should point to one not both. Having a uniform file structure works better than showing the same content from multiple page locations.

I don't use word press.
I'm not saying what you said was wrong or something, I just learned something about this.

I'm looking at it like this.

If a search engine finds http://blahblahblahb.com/folder
It's assuming there is an index.html or similar there ?

if it finds http://blahblahblahb.com/folder/
it's assuming the same thing. If it's not you should be assuming it is ?

I think he's right, the correct way to do it would have folder/ and folder.
that's why I said wordpress handles it nicely.

I don't think you should redirect anything.
Or maybe I'm wrong educate me

Last edited by 2012; 04-10-2009 at 11:38 PM..
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-10-2009, 11:41 PM   #15
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
it should be as natural as possible , it shouldn't look like it's been manipulated ?
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 04-11-2009, 12:58 AM   #16
2012
So Fucking What
 
2012's Avatar
 
Industry Role:
Join Date: Jul 2006
Posts: 17,189
Quote:
Originally Posted by fartfly View Post
quuuack.
Google doesn't care, why do you?
- not good. for whom ?
wow, was I wrong
2012 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.