21278 Posts in 5728 Topics by 2599 members
| Go to End | Next > | |
| Author | Topic: | 833 Views |
-
Extreme long SilverStripe paths

27 January 2010 at 9:14am Last edited: 11 August 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:
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? -
Re: Extreme long SilverStripe paths

27 January 2010 at 9:21am
Could you please paste the contents of your .htaccess file?
-
Re: Extreme long SilverStripe paths

27 January 2010 at 9:23am Last edited: 11 August 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/mfRewriteCond %{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 ### -
Re: Extreme long SilverStripe paths

27 January 2010 at 9:31am
Try changing the RewriteBase line to
RewriteBase mf/
-
Re: Extreme long SilverStripe paths

27 January 2010 at 9:34am Last edited: 11 August 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/
wont work. Any ID's?
-
Re: Extreme long SilverStripe paths

27 January 2010 at 9:37am
Changed it back again, else the links wouldnt work
-
Re: Extreme long SilverStripe paths

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?
-
Re: Extreme long SilverStripe paths

27 January 2010 at 9:51am Last edited: 11 August 2010 9:21am
Updated it, but http://www.url.nl/mf/home
says: a SS message: page not foundIs 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?
| 833 Views | ||
| Go to Top | Next > |

