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.

Hosting Requirements

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

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

Running SS 2.4 in Subdomain


2 Posts   366 Views


6 February 2014 at 12:52am (Last edited: 6 February 2014 12:53am), Community Member, 71 Posts

Hi guys,

I have a SS install on a dev server which is running under a subdomain. On the physical server, the site is in a sub-directory under public_html. When I run the site, the home page renders fine, but subsequent pages don't. htaccess has a rewrite cond like this.

RewriteCond %{REQUEST_URI} ^(.*)$

If I update the htaccess file so that it reads

RewriteCond %{REQUEST_URI} ^/subdirectory/(.*)$

Then sub pages render but the home page does not.

Does anyone have an example htaccess that fixes this?



19 September 2014 at 12:26pm Administrator, 685 Posts

You should leave the RewriteCond value as-is, and add a RewriteBase line, just after RewriteEngine On.

RewriteEngine On
RewriteBase '/subdirectory'