Jump to:

23370 Posts in 18160 Topics by 2864 members

General Questions

SilverStripe Forums » General Questions » Error 404 pages

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 1346 Views
  • SuperBlues
    Avatar
    Community Member
    25 Posts

    Error 404 pages Link to this post

    Hi I have just launched a new website using SS and have amended the .htaccess file to point users who have bookmarked some of the old website pages to go to the 'page not found' page within the SS site.

    However, when i click onto and 'old' url from the previous site (it had .php page types), I am given the 1and1 hosting version of their 404 page.

    My .htaccess file is below:

    AddType x-mapp-php5 .php
    ### SILVERSTRIPE START ###
    <Files *.ss>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    </Files>

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /cms

    RewriteCond %{REQUEST_URI} !(\.gif)|(\.jpg)|(\.png)|(\.css)|(\.js)|(\.php)$

    RewriteCond %{REQUEST_URI} ^(.*)$
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
    </IfModule>
    Options FollowSymLinks
    ### SILVERSTRIPE END ###
    ErrorDocument 400 http://www.mysite.com/cms/page-not-available/
    ErrorDocument 404 http://www.mysite.com/cms/page-not-found/

    Should I be doing something differnt? I would prefer users to go to the custom pages I have made which contain detailed explanation of where to go for certain items.

    Looking forward to your help guys!

    thanks

  • SuperBlues
    Avatar
    Community Member
    25 Posts

    Re: Error 404 pages Link to this post

    Anyone got any help please? I have tried numerous combinations of the ErrorDocument / url etc. butstill get the 1and1 error page and that is not what I want.

    Help please guys!

    1346 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.