4575 Posts in 1387 Topics by 1377 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 416 Views |
-
Website URL without containing silverstripe

6 January 2012 at 9:23am
Hi,
Probably the worlds easiest question but I just can't figure it out. How do I install Silverstripe so that my pages point to my base URL and don't contain silverstripe
e.g. I want www.mysite.com instead of www.mysite.com/silverstripe
Thanks in advance!
-
Re: Website URL without containing silverstripe

6 January 2012 at 2:55pm Last edited: 11 January 2012 1:55pm
Sounds like you have SilverStripe installed in a sub-directory. Moving all the files from your www/silverstripe/ folder to your www/ folder on the server should do the trick.
-
Re: Website URL without containing silverstripe

11 January 2012 at 6:05am
Actually, I'm with Bernie on this... I have other subdomains that have their own folders on my domain and want to keep SilverStripe in a separate folder, but have the URL for my main "www" domain point to that folder easily... There has to be an easy way to do this and I'll be searching the forum further, but in case I don't find anything (and this post was right up front on the topic), what's the "real" answer to Bernie's query (no offence to Sticks' response)?
-
Re: Website URL without containing silverstripe

11 January 2012 at 2:02pm
You could try creating a .htaccess file in your www directory and using mod_rewrite to direct requests to the SilverStripe folder. You might also need to edit the .htaccess file in the SilverStripe directory to make sure it keeps the '/silverstripe' out of the address bar.
This should help get you started: http://stackoverflow.com/questions/990392/htaccess-rewrite-to-redirect-root-url-to-subdirectory
-
Re: Website URL without containing silverstripe

12 January 2012 at 4:51am Last edited: 12 January 2012 4:53am
Thanks Sticks (and thanks for not taking offence to my first post, it's always appreciated when someone helps out and your solution in your first post may have worked out of the box for Bernie)... that seems more thorough than other .htaccess "solutions" I came across that didn't work for me because of my other subdirectories that point to subdomains (they stopped working when the SilverStripe subdirectory started working)...
Should get a chance to test this later...
| 416 Views | ||
|
Page:
1
|
Go to Top |



