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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Hosting Requirements /

What you need to consider when choosing a hosting provider and plan.

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

htaccess RewriteBase on a site thats yet to go live SOLVED


Go to End


2594 Views

Avatar
Bambii7

Community Member, 254 Posts

11 March 2010 at 2:27pm

Edited: 11/03/2010 2:28pm

Hi again to all, on my favorite forum.
This issue will be resolved later today I'm sure when the nameservers switch. But I develop a lot of SS sites like this so the solution would be handy to know.

I don't think there is much of a risk giving the links to the site on its IP so here it is
http://208.79.232.180/~mitchell/
which will soon become http://mitchellstoutarchitects.co.nz/

I get a nifty 404 when viewing on the IP. The folder was under /ss because there was a joomla install on root. I've just deleted the joomla install and moved the SS files to root.
I used to get similar issues when playing with SS locally in sub folders. The solution was to add something like
RewriteBase /ss/SilverStripev2.3.2/silverstripe

Is there something similar I can do when viewing the site via the IP?
I tried
RewriteBase http://208.79.232.180/~mitchell/
or
...................
Sorry just stumbled across the fix in my usual fashion but feel I should continue this post if anyone else has similar issues.
I needed to forward the shared host IP to the accounts partition
RewriteBase /~mitchell/
:blush: