jgc412 Posted July 8, 2016 Share Posted July 8, 2016 (edited) Hi! I'm installing Prestashop in a remote shared hosting where i have configured a only main domain name 'domainname.es'. And i would like to accesss to the prestashop e-shop via 'shop.domainname.es'. I've configured a folder /tienda as shop.domainname.es via cpanel and i've copied the content of the prestashop folder into this folder. I have two .htaccess, one in the / (root) and another one in /shop, How would i have to configure it in order to access to shop.domainname.es? The content of these files is the next: .htaccess of the / (root): RewriteCond %{HTTP_HOST} !^(www.)?domainname.es$ [NC] RewriteCond %{HTTP_HOST} ^(www.)?shop.domainname.es$ [NC] RewriteCond %{REQUEST_URI} !^/shop/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /shop/$1 RewriteCond %{HTTP_HOST} ^(www.)?shop.domainname.es$ [NC] RewriteRule ^(/)?$ shop/ [L] .htaccess de /shop: RewriteEngine on RewriteCond %{HTTP_HOST} ^shop\.domainname\.es$ [OR] RewriteCond %{HTTP_HOST} ^www\.shop\.domainname\.es$ RewriteRule ^/?$ "http\:\/\/shop\.domainname\.es" [R=301,L] Best regards Edited July 8, 2016 by jgc412 (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted July 8, 2016 Share Posted July 8, 2016 you need to contact your hosting provider and ask them for support in creating a subdomain on your hosting account. do that first and make sure it works properly using a test html or txt file, confirm that you can reach the test file from a browser. then you can install prestashop using the subdomain Link to comment Share on other sites More sharing options...
jgc412 Posted July 9, 2016 Author Share Posted July 9, 2016 (edited) Yes, i just have to test this, and the test.html file that i've created into a this subdomain works ok. But the prestashop site does'nt work: 'shop.domainname.es' Edited July 9, 2016 by jgc412 (see edit history) Link to comment Share on other sites More sharing options...
bellini13 Posted July 9, 2016 Share Posted July 9, 2016 so the following does work? http://shop.domainname.es/test.html if so, then upload Prestashop to your subdomain folder, and then run the installer http://shop.domainname.es/install Link to comment Share on other sites More sharing options...
jgc412 Posted July 9, 2016 Author Share Posted July 9, 2016 http://shop.domainname.es/test.html works, but, http://shop.domainname.es/index.php neither http://shop.domainname.es/install/index.php don't work Link to comment Share on other sites More sharing options...
vekia Posted July 10, 2016 Share Posted July 10, 2016 php is disabled for this subdomain probably and the result is not possible to open any kind of .php file optionally, in .htaccess file you've got php_flag engine off if so, change it to php_flag engine on or remove it completly Link to comment Share on other sites More sharing options...
jgc412 Posted July 14, 2016 Author Share Posted July 14, 2016 Finally we got to solve the problem modifying the permissions for folder and files into the folder /shop/install to 755 for directories and to 644 for files, Regards Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now