Redirect Error 404

Started by lucas-ruroken, October 26, 2009, 08:06:40 AM

Previous topic - Next topic

lucas-ruroken

Link to the mod



Redirect Error 404 - lucas-ruroken
Error 404 redirect an internal page



Autor:
- lucas-ruroken

Perfil
My Mods


Help support my mods


Descripcion (Spanish):
Este mod nos permitira mandar a los visitantes a una pagina interna cada vez que arroje error 404

Description (English):
This mod allows redirect the visitors an internal page whenever mistake throws 404

Nota (1): (Spanish)
Abrir el archivo htaccess.txt y en esta linea:
ErrorDocument 404 /index.php?action=Error404
Añadir si tienen su foro en otro carpeta por ejemplo si su foro esta en www.yoursite.com/foro
entonces modificar por:
ErrorDocument 404 /foro/index.php?action=Error404
Luego Subir al root de su dominio y renombrar a .htaccess

Nota (2): (Spanish)
Si usted utiliza otro htaccess en el root del dominio debe abrilo y agregar la linea
ErrorDocument 404 /index.php?action=Error404
y repetir paso anterior

Note (1): (English)
To open the file htaccess.txt and in this line:
ErrorDocument 404 /index.php?action=Error404
To add if they have his forum in other one folder for example if his forum this one in www.yoursite.com/foro
ErrorDocument 404 /foro/index.php?action=Error404
Then To raise the root of his(her,your) domain(control) and to rename to .htaccess

Note (2): (English)
If you use another htaccess in the root of the domain(control) it(he,she) has to abrilo and add the line 
ErrorDocument 404 /index.php?action=Error404
And to repeat previous step

Images:
Preview 1
Preview 2


For Support: SmfPersonal.net
Adk Portal 3.1 is coming....

Design your universe!

Afro

good mod, but i heard its a bad idea to redirect 404 pages.

check here

http://www.mcanerin.com/EN/articles/301-redirect-404-error.asp

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

Arantor

You could have it send the appropriate header from the redirected error page though.

lucas-ruroken

Redirect error 404 is now avaiable for 2.0 RC3
Adk Portal 3.1 is coming....

Design your universe!

Sakae

Not showing on admin section. I'm using RC3.
http://www.tigrelog.com.br
l: simple p: machines

lucas-ruroken

Admin-->Configuration-->Modifications Settings
Adk Portal 3.1 is coming....

Design your universe!

Sakae

Oh, it's here :D

Don't know why, I was looking for features and settings. Perhaps your screenshot is and old version of the mod?...
http://www.tigrelog.com.br
l: simple p: machines

lucas-ruroken

no, The screen is of Smf 1.1.x :P
Adk Portal 3.1 is coming....

Design your universe!

lucas-ruroken

Compatible SMF 2.0 RC4 & SMF 1.1.12
Adk Portal 3.1 is coming....

Design your universe!

lucas-ruroken

Adk Portal 3.1 is coming....

Design your universe!

lucas-ruroken

Updated to SMF 2.0 RC5 & 1.1.13
Adk Portal 3.1 is coming....

Design your universe!

yogesh_gamer

its not working for me
using 1.1.13 version

lucas-ruroken

do you read the instructions?
Adk Portal 3.1 is coming....

Design your universe!

yogesh_gamer

what instruction?
I "upload" the mod and click on "apply mod".
I am getting this error:
Installing this package will perform the following actions:
Type   Action   Description
1.   Execute Modification   ./index.php   Test failed
2.   Execute Modification   ./Sources/ModSettings.php   Test successful
3.   Execute Modification   ./Themes/default/languages/Modifications.english.php   Test successful
4.   Execute Modification   ./Themes/default/languages/Modifications.spanish.php   Skipping file
5.   Execute Modification   ./Themes/default/languages/Modifications.spanish_latin.php   Skipping file
6.   Execute Modification   ./Themes/default/languages/Modifications.spanish_es.php   Skipping file
7.   Extract File   ./Sources/Error404.php   
8.   Extract File   ./Themes/default/Error404.template.php   

lucas-ruroken

install the mod.... after that, attach the main index.php
Adk Portal 3.1 is coming....

Design your universe!

yogesh_gamer

ok. before testing this mod i was testing this mod on my another testing purpose website
On my website its showing me error in modsetting.php
please give me instruction
thanks

yogesh_gamer


lucas-ruroken

....

I say.. :P install th emod in your site.... and after that, attach the files with the error.

I installed the mod on new forums... and It works fine ;)
Adk Portal 3.1 is coming....

Design your universe!

yogesh_gamer

ok.
Here is my Modsetting.php
i am getting error in this file

Advertisement: