Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

setting up server for multiple domains

Featured Replies

Hi there

 

Just got some new business hosting package that i intend to use for about 3 other venture in the future.

While setting up the first one i just want to make sure i'm not creating a headache for myself when i come to set the others up with regards to admin and SEO stuff.

 

This is the situation

 

With domain www.site1.co.uk and on the webspace in the public_html folder i have created a new folder called site1. I have then installed prestashop in that location. I have set up a redirect for www.site1.co.uk to www.site1.co.uk/site1 and everything works fine. What i am looking to do is mask the /site1 part of the address

 

Also would this type of approach cause problems down the line with admin and SEO?

 

Thanks

Why would you have it in a subfolder if you want it as the main domain?

Why not just have it in the public_html folder, then no "masking" is required

  • Author

Why would you have it in a subfolder if you want it as the main domain?

Why not just have it in the public_html folder, then no "masking" is required

 

 

Hi there

 

i plan to have 3 others ecommerce solutions installed into the public_html folder so i have to split them up into their own locations otherwise it'll overwrite the previous ones.

Try this .htaccess code

 

.htaccess

RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteCond %{HTTP_HOST} site1.co.uk
RewriteCond %{REQUEST_URI} !site1/
RewriteRule ^(.*)$ site1/$1 [L]

  • Author

Try this .htaccess code

 

.htaccess

RewriteEngine On
Options +FollowSymlinks
RewriteBase /

RewriteCond %{HTTP_HOST} site1.co.uk
RewriteCond %{REQUEST_URI} !site1/
RewriteRule ^(.*)$ site1/$1 [L]

 

 

Nice one mate, that's exactly what i'm looking for

 

Have a good day :)

I take it you're using add on domains then Just create folders outside of the public_html folder for the addon domains so your structure would look like

 

2010-07-21_1300.png

 

So your original site goes in the public folder and the addons go in their respective folders on the addon domains folder This way you won't have any cross contamination of files, or htaccess rules

  • Author

I take it you're using add on domains then

Just create folders outside of the public_html folder for the addon domains so your structure would look like

 

|

|--Addon Domains

| |

| |--Site 2 Folder

| |

| |--Site 3Folder

| |

| |--Site 4 Folder

|

|--Public html

 

So your original site goes in the public folder and the addons go in their respective folders on the addon domains folder

This way you won't have any cross contamination of files, or htaccess rules

 

 

Hi there

 

Thanks, this seems like a more elegant solution to avoid headaches down the road.

  • Author

Yeah it is (I also updated the image in the last post since the formatting on this is not the best)

 

 

yeah that's a much better image. Does this solution have any impact on SEO stuff?

None whatsoever. It's just like having two different sites on two different servers, completely separate from each other

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.