Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions /

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

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

Error 404 pages

Go to End

2 Posts   1720 Views


Community Member, 25 Posts

31 March 2010 at 5:12am

Edited: 07/04/2010 8:19pm

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
<Files *.ss>
Order deny,allow
Deny from all
Allow from

<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]
Options FollowSymLinks
ErrorDocument 400
ErrorDocument 404

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!



Community Member, 25 Posts

1 April 2010 at 10:11am

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!