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, biapar, Willr, Ingo, swaiba, simon_w

Extreme long SilverStripe paths


Go to End
Reply

9 Posts   1179 Views

Avatar
borriej

27 January 2010 at 9:14am (Last edited: 11 August 2010 9:20am), Community Member, 267 Posts

Hello everyone!

When my pages are created I get extremely long paths:

http://www.url.nl/users/166112/public/sites/www.url.nl/mf/home

I want the path to look like this:

http://www.url.nl/mf/home

I've taken a look into the .htaccess, but I don't know how to change it/ if it is even working. Because if it would be working wouldn't the path be:
www.url.nl/mf/sapphire/main.php?url=home ? Or am i reading it wrong?

Avatar
mobius

27 January 2010 at 9:21am Community Member, 54 Posts

Could you please paste the contents of your .htaccess file?

Avatar
borriej

27 January 2010 at 9:23am (Last edited: 11 August 2010 9:21am), Community Member, 267 Posts

### SILVERSTRIPE START ###
<Files *.ss>
Order deny,allow
Deny from all
Allow from 127.0.0.1
</Files>

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /users/166112/public/sites/www.url.nl/mf

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

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]
</IfModule>
### SILVERSTRIPE END ###

Avatar
mobius

27 January 2010 at 9:31am Community Member, 54 Posts

Try changing the RewriteBase line to

RewriteBase mf/

Avatar
borriej

27 January 2010 at 9:34am (Last edited: 11 August 2010 9:20am), Community Member, 267 Posts

Changed it! See www.url.nl/public/sites/www.url.nl/mf/.htaccess

But now I get Error 500 when you acces a page

http://www.url.nl/users/166112/public/sites/www.url.nl/mf/

or
http://www.url.nl/mf/home

wont work. Any ID's?

Avatar
borriej

27 January 2010 at 9:37am Community Member, 267 Posts

Changed it back again, else the links wouldnt work

Avatar
mobius

27 January 2010 at 9:42am Community Member, 54 Posts

Ah, if you change it to

RewriteBase /

You could then access it at http://www.robvaneckdesign.nl/

Would that be suitable?

Avatar
borriej

27 January 2010 at 9:51am (Last edited: 11 August 2010 9:21am), Community Member, 267 Posts

Updated it, but http://www.url.nl/mf/home
says: a SS message: page not found

Is there an easy way to reinstall the CMS? Because maybe the XML parsing error at the root (http://www.url.nl/mf/) is also interefering with this problem?

Go to Top