![]() |
![]() |
![]() |
||||
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. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Affiliate
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,433
|
htaccess help anyone?
I want to redirect all domains with the suffix .ru
how can I do that? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Join Date: Jul 2003
Location: East Village
Posts: 238
|
you probably could do it with .htaccess, but i'm not feeling too clever today.
PHP version for you: PHP Code:
http://pornanza.net |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Affiliate
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,433
|
i know 0 about php or any other language other than html...
where do I put this php file? in my main root? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Jul 2003
Location: East Village
Posts: 238
|
yeah
paste the code below into index.php in the root PHP Code:
ryan http://pornanza.net |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Join Date: Jun 2003
Location: Lutz, FL
Posts: 1,022
|
RewriteEngine On
RewriteCond %{HTTP_REFERER} .*?\.ru.* [NC] RewriteRule /(.*) http://someothersite.com [R,L] I didn't test it, so let me know if it doesn't work. I also didn't know if you mean redirect referers or your own domains. If it's your own domains, change HTTP_REFERER to HTTP_HOST
__________________
Clips4Sale.com |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Affiliate
Industry Role:
Join Date: Oct 2002
Location: Icq: 94-399-723
Posts: 24,433
|
Quote:
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Jun 2003
Location: Lutz, FL
Posts: 1,022
|
I tested it this time on my server. It's at http://paywide.com should redirect all .ru to yahoo.com. Here is what's in the .htaccess
RewriteEngine On RewriteCond %{HTTP_REFERER} .*?.ru.* [NC] RewriteRule .* http://www.yahoo.com [R,L] If it still give you a 500 error, check your error logs for apache on your account to see what it says. If you don't have access to your error logs, check with your hosting company (if you don't have your own server) to make sure you can use .htaccess files and also (this is the most important) make sure you can use ModRewrite in you .htaccess file. If you can use .htaccess or ModRewrite, just give the above code to the server admin to put it in httpd.conf for your account.
__________________
Clips4Sale.com |
![]() |
![]() ![]() ![]() ![]() ![]() |