July 21, 201016 yr 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
July 21, 201016 yr 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
July 21, 201016 yr 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.
July 21, 201016 yr Try this .htaccess code .htaccess RewriteEngine On Options +FollowSymlinks RewriteBase / RewriteCond %{HTTP_HOST} site1.co.uk RewriteCond %{REQUEST_URI} !site1/ RewriteRule ^(.*)$ site1/$1 [L]
July 21, 201016 yr 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
July 21, 201016 yr 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 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
July 21, 201016 yr 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.
July 21, 201016 yr Yeah it is (I also updated the image in the last post since the formatting on this is not the best)
July 21, 201016 yr 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?
July 21, 201016 yr None whatsoever. It's just like having two different sites on two different servers, completely separate from each other
July 21, 201016 yr Author None whatsoever. It's just like having two different sites on two different servers, completely separate from each other Perfect
Create an account or sign in to comment