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 09-28-2004, 11:27 PM   #1
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
htaccess question

I have mydomain.com - I have mydomain.com/members/

I don't want anyone to get to mydomain.com/members/ unless they enter from mydomain.com/members.html

If someone does try to access directly from mydomain.com/members/ I want it to redirect them to mydomain.com/members.html

I can't seem to figure this out . . . anyone know?

Thank you in advance

Last edited by baddog; 09-28-2004 at 11:28 PM..
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-28-2004, 11:37 PM   #2
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
it can also redirect to 404.html if that would make it easier
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-28-2004, 11:42 PM   #3
Magg
Confirmed User
 
Join Date: Feb 2004
Location: ICQ: 132497047
Posts: 4,467
easy way, stick an index.html file with a redirect script that goes instant to members.html
Magg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-28-2004, 11:43 PM   #4
Tempest
Too lazy to set a custom title
 
Industry Role:
Join Date: May 2004
Location: West Coast, Canada.
Posts: 10,217
I don't have anything, but would start by making up a modified version of antihotlinking mod_rewrite code... Is that what you've tried?

It also won't stop everyone as some peopel will block their referer.
Tempest is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-28-2004, 11:43 PM   #5
Magg
Confirmed User
 
Join Date: Feb 2004
Location: ICQ: 132497047
Posts: 4,467
PHP Code:

<Script>
                if (
document.all//IE4,5
                
loc 'solutions.html'
                
else if (document.layers//NS4
                
loc 'solutions.html'
                
else if (document.getElementById//NS5
                
loc 'solutions.html'
                
else if (document.images//NS3,IE4
                
loc 'solutions.html'
                
else //NS2,IE3
                
loc 'solutions.html'
                
window.location loc;
                
//--></Script>


<Script>
                if (
document.all//IE4,5
                
loc 'solutions.html'
                
else if (document.layers//NS4
                
loc 'solutions.html'
                
else if (document.getElementById//NS5
                
loc 'solutions.html'
                
else if (document.images//NS3,IE4
                
loc 'solutions.html'
                
else //NS2,IE
                
loc 'solutions.html'
                
window.location loc;
                
//--></Script> 
Magg is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2004, 12:58 AM   #6
BrainDead
So Fucking Banned
 
Join Date: Dec 2003
Posts: 1,536
try 404html. if it would be easier.
BrainDead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2004, 01:09 AM   #7
chaze
Confirmed User
 
Industry Role:
Join Date: Aug 2002
Posts: 9,752
Hello,

That is a great idea, I try so hard to get my customers to do this. It will really help your site on so many levels.

The code to do this and more is here:

http://www.easywebsitepromotion.com/...ips-tricks.htm



My first three thumbs up here.
chaze is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2004, 02:17 AM   #8
Adultnet
Confirmed User
 
Join Date: Sep 2003
Posts: 8,713
You can cookie the surfers that visit your main url then if they wont have a cookie at the members area page you can use a redirect functions with php or javascript to send them to any page you like.
If you need any help with writting it i can give you the code.
210-623-566
__________________


TrafficCashGold Paying Webmasters Since 1996!

Awesome Conversions! Fast Weekly Payments! Over 125 Tours!
Adultnet is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2004, 02:24 AM   #9
baddog
So Fucking Banned
 
Industry Role:
Join Date: Apr 2001
Location: the beach, SoCal
Posts: 107,089
I would like to thank venturi . . . we figured it out, and all is well now

thanks buddy
baddog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 09-29-2004, 02:26 AM   #10
venturi
Confirmed User
 
Join Date: Aug 2001
Location: An Oasis atop a High Desert Mesa
Posts: 386
t'was nothin' brothah!

Hell, I hadn't talked to you directly since Phoenix so a call was in order anyway.
__________________
I'm not a porn monger. I'm a porn ... STYLIST!
Buildit Cheap, build it Fast, Build it Right. - Pick Two.
venturi 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.