|
Haven't registered yet? Do it here now!
|
|
|
|
Dutch Harry
Joined: 25 Mar 2007 Posts: 30
|
|
|
|
|
|
|
Posted: Sat Oct 27, 2007 12:54 pm Post subject: 401 traffic redirecting |
|
|
|
|
|
|
|
|
|
|
Hey Kaktus
After the Lelahost drama i am still restoring my blogs, i have a lot a listings still in yahoo and google that goes 401/404 now.
I have tried to adjust the htaccess to redirect the surfers to the main page of that blog but that doesn't work (ErrorDocument 401 http://www.myblog.com)
Is there a way to adjust the htaccess, because now the surfers gets only a white page to see
Thanks
Her is the whole HTACCES code
H Code: | ErrorDocument 401 http://www.myblog.com
ErrorDocument 403 http://www.myblog.com
ErrorDocument 404 http://www.myblog.com
ErrorDocument 500 http://www.myblog.com
RewriteEngine On
RewriteRule _([0-9]+).html$ bopost.php?post=$1
RewriteRule ^archives-([0-9]+)-([0-9]+)-([0-9]+)$ archives.php?blog=7&arc=$1-$2-$3
RewriteRule ^pages-([0-9]+)$ pages.php?page=$1
RewriteRule ^sitemap.xml.gz$ googlemap.php
RewriteRule ^sitemap.php$ bositemap.php
RewriteRule ^pic-(.+)$ http://www.myblog.com/bo/boimages/$1
RewriteRule ^cat/(.+)pic-(.+)$ http://www.myblog.com/bo/boimages/$2
RewriteRule ^cat/(.+)$ cat.php?cat=$1
RewriteRule ^xmlrpc.php$ http://http://www.myblog.com/bo/xmlrpc.php |
|
|
|
|
|
|
|
|
Atanasis Owner
Joined: 22 May 2004 Posts: 4284 Location: The Net
|
|
|
|
|
|
|
Posted: Sat Oct 27, 2007 4:49 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
the deal is that the line:
RewriteRule _([0-9]+).html$ bopost.php?post=$1
rewrites the request, so it doesn't generate 404 or other error, but in the db there is no such post, thats why the blank page appears.
you can modify that line like:
RewriteRule _([0-9]+).html$ http://www.myblog.com
but that will make all non existent and existent links redirect. So there is no really useful solution so far.
Just for next version i am planning on making a 404 option, so when the post doesn't exist, the script will redirect to url you specify. I can go ahead and make this mod for you and release, but i can't do it before monday/tuesday, since in some mins i will be going to a travel for 2 days. _________________ Thanks,
Kaktusan
|
|
|
|
|
|
|
|
Dutch Harry
Joined: 25 Mar 2007 Posts: 30
|
|
|
|
|
|
|
Posted: Sun Oct 28, 2007 9:53 am Post subject: |
|
|
|
|
|
|
|
|
|
|
Thanks Kaktus
I am not going to follow this any longer then, to bad for the listings but i like to keep all my links intact
Greets
H |
|
|
|
|
|
|
|
switch54
Joined: 21 May 2009 Posts: 7
|
|
|
|
|
|
|
Posted: Fri Jul 10, 2009 1:25 pm Post subject: |
|
|
|
|
|
|
|
|
|
|
Atanasis wrote: |
Just for next version i am planning on making a 404 option, so when the post doesn't exist, the script will redirect to url you specify. I can go ahead and make this mod for you and release, but i can't do it before monday/tuesday, since in some mins i will be going to a travel for 2 days. |
is there any solution on this one? i know its an old post, but thats why i hope i just missed it in bo. or if you still have that mod... i have a few old sites restarting here, and the indexed pages shouldnt loose their hits imo
ps. sorry to disturb while on holiday |
|
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2002 phpBB Group
|
|
|
|
| |