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   1219 Views

Avatar
borriej

Community Member, 267 Posts

27 January 2010 at 9:14am

Edited: 11/08/2010 9:20am

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

Community Member, 54 Posts

27 January 2010 at 9:21am

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

Avatar
borriej

Community Member, 267 Posts

27 January 2010 at 9:23am

Edited: 11/08/2010 9:21am

### 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

Community Member, 54 Posts

27 January 2010 at 9:31am

Try changing the RewriteBase line to

RewriteBase mf/

Avatar
borriej

Community Member, 267 Posts

27 January 2010 at 9:34am

Edited: 11/08/2010 9:20am

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

Community Member, 267 Posts

27 January 2010 at 9:37am

Changed it back again, else the links wouldnt work

Avatar
mobius

Community Member, 54 Posts

27 January 2010 at 9:42am

Ah, if you change it to

RewriteBase /

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

Would that be suitable?

Avatar
borriej

Community Member, 267 Posts

27 January 2010 at 9:51am

Edited: 11/08/2010 9:21am

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