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)
-   -   redirecting 404 traffic to site + filter by browser language (https://gfy.com/showthread.php?t=992140)

klinton 10-12-2010 12:52 PM

redirecting 404 traffic to site + filter by browser language
 
hello, I would like to send all my 404 hits that speak, let's say, russian, to some page...
how to do this in httacess ?

thanks

Mikushi 10-12-2010 12:58 PM

Wrong board. But here is your answer :
Code:

ErrorDocument 404 /the_page_you_want.html
Then on your page "the_page_you_want.html"

Code:

<meta http-equiv="Refresh" content="1; URL=some-domain">
Will redirect after a sec. But doesn't handle geo, you would probably need some custom 404 handling combined with Geo.

klinton 10-12-2010 01:01 PM

smart :)

so now i can easily 404 redirect to some page/folder and then setup another htaccess with language redirection :)

RewriteCond %{HTTP:Accept-Language}

unless that could be done in one code line ?


All times are GMT -7. The time now is 06:15 AM.

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