GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess question (https://gfy.com/showthread.php?t=364002)

baddog 09-28-2004 11:27 PM

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

baddog 09-28-2004 11:37 PM

it can also redirect to 404.html if that would make it easier

Magg 09-28-2004 11:42 PM

easy way, stick an index.html file with a redirect script that goes instant to members.html

Tempest 09-28-2004 11:43 PM

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.

Magg 09-28-2004 11:43 PM

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> 


BrainDead 09-29-2004 12:58 AM

try 404html. if it would be easier.

chaze 09-29-2004 01:09 AM

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

:thumbsup :thumbsup :thumbsup

My first three thumbs up here.

Adultnet 09-29-2004 02:17 AM

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

baddog 09-29-2004 02:24 AM

I would like to thank venturi . . . we figured it out, and all is well now

thanks buddy :thumbsup

venturi 09-29-2004 02:26 AM

t'was nothin' brothah!

Hell, I hadn't talked to you directly since Phoenix so a call was in order anyway. :)


All times are GMT -7. The time now is 06:26 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123