eugenata Posted August 6, 2012 Share Posted August 6, 2012 (edited) I installed Prestashop to a folder, but now I no longer have access to a subdomain present in the same hosting. When I type: http://jewels.mysite.com, I get redirected in Index of Prestashop (http://www.mysite/prestashop.com). The subdomain points to a folder called "jewels" in the same folder level where there is Prestashop directory. The problem occurs only with url rewrite ( .htaccess generated in Prestashop) Help me please Edited August 6, 2012 by eugenata (see edit history) Link to comment Share on other sites More sharing options...
eugenata Posted August 6, 2012 Author Share Posted August 6, 2012 In. htaccess file in the root of the site, there was this line: Redirect permanent /index.php http://www.mysite/prestashop This redirects also calls the sub domain. I replaced the above line with this: RewriteCond %{HTTP_HOST} ^mysite\.com$ [OR] RewriteCond %{HTTP_HOST} ^www\.mysite\.com$ RewriteRule ^/?$ "http\:\/\/www\.mysite\.com\/prestashop\/index\.php" [R=301,L] And now works fine Link to comment Share on other sites More sharing options...
realayumi Posted September 3, 2012 Share Posted September 3, 2012 (edited) Hello, I have a littlebit same scenario. i have subdomain "mobile" in main document root, same as prestashop folder. I tried what you stated above, When i type mobile.mysite .com its run smooth, but when i type when i go to mysite .com the page says: This webpage has a redirect loop Any help would be appriciate ... I use 1.4.8.2 Edited September 3, 2012 by realayumi (see edit history) 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