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.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

Directory structure - what do you do?


Reply


4 Posts   1510 Views

Avatar
dc

Community Member, 3 Posts

8 January 2008 at 4:26am

Just getting started, but really like what I see with SilverStripe! When installing SS, I put all the files in a directory under the webroot: mysite.com/ss/ Unfortunately, that means that all my files will be one directory deep - can this be resolved with a simple RewriteRule in .htaccess? Or would I be better off moving everything one directory up? Sorry, I feel a bit stoopid on this one.

What do you do?

-dc

Avatar
Wojtek

Community Member, 149 Posts

8 January 2008 at 6:09am

hey,
check this one out:

RewriteEngine On
RewriteRule ^ss/(.+)$ $1

should work.

Avatar
Salzheld

Community Member, 8 Posts

9 January 2008 at 8:15am

doesn't work here.

Avatar
Wojtek

Community Member, 149 Posts

9 January 2008 at 8:21am

Check this out:
http://forum.modrewrite.com/viewtopic.php?t=1443&sid=4f55c1e41c6735084bf5791fc735e17b

It might be what you need.