ErrorDocument Umleitung funktioniert nicht

Craxx

Hy Ruud,

thnx a lot. Is working now :-D

best regards
Craxx
Craxx;)

Ruud

When using shorturl there are no errorpages for apache to handle.

In short.php you can define what to do when a page is not found:
define('ERROR_PAGE' , '/'); //Change this to point to your existing 404 page.

So for example, if your 404 page is located in WB as /pages/notfound.php you should use:
define('ERROR_PAGE' , '/notfound/');

[url=https://dev4me.com/modules-snippets/]Dev4me - WebsiteBaker modules[/url] - [url=https://wbhelp.org/]WBhelp.org[/url]

Craxx

Hallo habe gerade festgestellt, dass die ErrorDocument Umleitung irgendwie nicht funktioniert. Das nicht nur bei 2.10 sondern auch beim SP7.

Wo habe ich da nen Bock drin?


Hier die .htaccess vom 2.10 er

# Example .htaccess wich allows to parse .html as php
# AddType application/x-httpd-php .html
#
#
mod_gzip_on Yes

RewriteEngine On

ErrorDocument 400 /start
ErrorDocument 401 /start
ErrorDocument 403 /start
ErrorDocument 404 /start
ErrorDocument 500 /start

RewriteCond %{HTTP_HOST} ^([^.]+).(de)
RewriteRule ^(.*) http://www.%1.%2/$1 [R=301,L]
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(html?|php)\ HTTP/
RewriteRule ^index\.(html?|php)$ http://domain.de/ [R=301,L]


## If old url's are called directly - redirect to short url version
RewriteCond %{REQUEST_URI} !/pages/intro.php
RewriteCond %{REQUEST_URI} /pages
RewriteRule ^pages/(.*).php$ /$1/ [R=301,L]

## Send the request to the short.php for processing
RewriteCond %{REQUEST_URI} !^/(pages|admin|framework|include|languages|media|account|search|temp|templates/.*)$
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([\/\sa-zA-Z0-9._-]+)$ /short.php?_wb=$1 [QSA,L]


Vielen Dank für die Hilfe


PS: Die Zeile habe ich neutralisiert, da steht sonst die korrekte Domain drin ;-)
RewriteRule ^index\.(html?|php)$ http://domain.de/ [R=301,L]
Craxx;)