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... redirecting based on username? (https://gfy.com/showthread.php?t=316607)

PornAddict 06-23-2004 07:19 AM

htaccess... redirecting based on username?
 
I got the piece of code from here before, but can't find it due to not being able to search. Is there anyone out there that can help me with it?

Basically, I need to redirect a certain username when they try and enter my member's area. It was similar to the mod rewrite that would redirect based on http referrer.

Any help would be greatly appreciated...

- PornAddict

jimmyf 06-23-2004 07:22 AM

can't help with user name redirect


but I also had code for htaccess that redirects by country
like

.de
or
.net
or
fr

Project-Shadow 06-23-2004 07:53 AM

Erm, you mean like abused usernames?
I'd try and get in touch with people who own password protection programmes.

WWC-Hagan 06-23-2004 09:13 AM

in your .htaccess file, you can use the:

%
PHP Code:



REMOTE_USER} variable, which is the member's username.

so in you would use mod_rewrite, and something like:


RewriteCond %haha123;REMOTE_USER} ^user.* [NC]
RewriteRule whatever...goes...here

PornAddict 06-23-2004 09:46 AM

Thank you Haganxy... that is exactly the code needed. I appreciate the help greatly!

- PornAddict


All times are GMT -7. The time now is 05:56 PM.

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