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.

Installing SilverStripe /

Getting SilverStripe up and running on your computer and on your web server.

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

Basic URL Rewrite not working

Go to End



Community Member, 1 Post

15 August 2012 at 5:03pm

I have a more complex rewrite in mind, but for this I'll use a generic example. Lets say I want the /admin/ section to appear as /radical-admin/ I've tried to teset this using this rewrite:

RewriteRule radical-admin admin [NC] # test

This is in the .htaccess inside assets folder. The whole section looks like:

<IfModule mod_rewrite.c>
DirectoryIndex index.php
RewriteEngine On

RewriteBase /
RewriteRule radical-admin admin [NC] # test

RewriteCond %{REQUEST_URI} ^(.*)$
RewriteCond %{REQUEST_FILENAME} !-f

RewriteRule .* sapphire/main.php?url=%1&%{QUERY_STRING} [L]


However, nothing happens at all. If I comment out #RewriteBase / the whole system falls over with 500 Error, so the .htaccess file is definitely in effect.

Also if I try a crazy rewrite like .* I can see this kicking in to some extent.

So basically, I want to work and show the login screen. Any ideas?

Just want to get a really simple rewrite going and then move on to the actual one I have in mind.