Jump to content

[SOLVED] Big problem with subdomain and url rewrite


Recommended Posts

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 by eugenata (see edit history)
Link to comment
Share on other sites

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

  • 4 weeks later...

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 by realayumi (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...