WebsiteBaker Logo
  • *
  • Templates
  • Help
  • Add-ons
  • Download
  • Home
*
Welcome, Guest. Please login or register.

Login with username, password and session length
 

News


WebsiteBaker 2.13.6 is now available!


Will it continue with WB? It goes on! | Geht es mit WB weiter? Es geht weiter!
https://forum.websitebaker.org/index.php/topic,32340.msg226702.html#msg226702


The forum email address board@websitebaker.org is working again
https://forum.websitebaker.org/index.php/topic,32358.0.html


R.I.P Dietmar (luisehahne) and thank you for all your valuable work for WB
https://forum.websitebaker.org/index.php/topic,32355.0.html


* Support WebsiteBaker

Your donations will help to:

  • Pay for our dedicated server
  • Pay for domain registration
  • and much more!

You can donate by clicking on the button below.


  • Home
  • Help
  • Search
  • Login
  • Register

  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • Hilfe & Support (deutsch) »
  • ErrorDocument Umleitung funktioniert nicht
  • Print
Pages: [1]   Go Down

Author Topic: ErrorDocument Umleitung funktioniert nicht  (Read 5082 times)

Offline Craxx

  • Posts: 266
ErrorDocument Umleitung funktioniert nicht
« on: June 07, 2017, 03:42:57 PM »
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]
Logged
Craxx;)

Offline Ruud

  • Posts: 3671
  • Gender: Male
  • Do not use PM for help! Please use the forum!
    • Dev4Me - Professional WebsiteBaker Development
Re: ErrorDocument Umleitung funktioniert nicht
« Reply #1 on: June 07, 2017, 03:56:12 PM »
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:
Code: [Select]
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:
Code: [Select]
define('ERROR_PAGE' , '/notfound/');
Logged
Dev4me - WebsiteBaker modules - WBhelp.org

Offline Craxx

  • Posts: 266
Re: ErrorDocument Umleitung funktioniert nicht
« Reply #2 on: June 07, 2017, 04:23:47 PM »
Hy Ruud,

thnx a lot. Is working now :-D

best regards
Craxx
Logged
Craxx;)

  • Print
Pages: [1]   Go Up
  • WebsiteBaker Community Forum »
  • WebsiteBaker Support (2.10.x) »
  • General Help & Support »
  • Hilfe & Support (deutsch) »
  • ErrorDocument Umleitung funktioniert nicht
 

  • SMF 2.0.19 | SMF © 2017, Simple Machines
  • XHTML
  • RSS
  • WAP2