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


Reply


2 Posts   475 Views

Avatar
Lazarus404

Community Member, 71 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?

Thanks,
Lee

Avatar
Sam

Administrator, 685 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'