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, Ed, biapar, Willr, Ingo, swaiba

Running SS 2.4 in Subdomain

Go to End

2 Posts   1327 Views


Community Member, 72 Posts

6 February 2014 at 12:52am

Edited: 06/02/2014 12:53am

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?



Administrator, 690 Posts

19 September 2014 at 12:26pm

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

RewriteEngine On
RewriteBase '/subdirectory'