Jump to content

domain doesn't redirect to the subfolder


Recommended Posts

I just moved my store to the new host and still waiting for it to propagate but i think there is a problem with redirect. I can access my store via domain.com/store but when i try domain.com it gives me error page

 

"The web hosting service for this web page is provided by SiteGround.com. Our client is still working on their website, but nice of you to come by. Check back again!"

 

I was getting a 500 internal server error at first but then deleted htaccess in root and subfolder and regenerated it by turning on/off friendly url, it regenerated one in subfolder but not in the root. So now i can access domain.com/store but domain.com doesnt redirect

Link to comment
Share on other sites

  On 6/13/2014 at 11:27 PM, El Patron said:

sorry, forgot to also ask what version of PrestaShop.

 
  On 6/13/2014 at 11:22 PM, El Patron said:

was the shop originally in a subfolder on old server?

yes it was.

 

Since it's not propagated yet i'm using proxy so i can access BO and domain.com/store/ just fine but accessing domain.com gives under construction page of my old host.

 

I also have a warning message in my BO under Preferences>Urls&SEO URL rewriting (mod_rewrite) is not active on your server, or it is not possible to check your server configuration. If you want to use Friendly URLs, you must activate this mod.

 

I just asked my host if mod_rewrite enabled and they said it is enabled

 

My bad, i forgot to mention ps version, it's 1.5.6.2

Edited by fishordog (see edit history)
Link to comment
Share on other sites

  On 6/13/2014 at 11:42 PM, fishordog said:

Prestashop 1.5.6.2. They did a full backup and restored it on new server exactly same way in the subfolder

 

ok, this is hard for me to answer.  Godaddy for example will allow you to use a sub-folder and point the domain to that sub-folder, so url does not contain sub-folder name.  I did some searches and have had no luck (again) on how to resolve having in sub-folder but not having sub-folder in url.  Sorry not much help.

Link to comment
Share on other sites

  On 6/13/2014 at 11:51 PM, El Patron said:

ok, this is hard for me to answer.  Godaddy for example will allow you to use a sub-folder and point the domain to that sub-folder, so url does not contain sub-folder name.  I did some searches and have had no luck (again) on how to resolve having in sub-folder but not having sub-folder in url.  Sorry not much help.

oh i probably didn't explain it well. I had my subfolder in url before, it's just when i access domain.com it doesn't take me to the website 

Link to comment
Share on other sites

yes, it has to be painfully explained to me...:)

 

did you regenerate .htaccess?  If not you can do this by turning friendly url on or off depending on your settings.  Then set them back to normal, clear your browser cache.

 

also clear smarty cache, under advanced pref-->performance

Link to comment
Share on other sites

  On 6/14/2014 at 12:01 AM, El Patron said:

yes, it has to be painfully explained to me... :)

 

did you regenerate .htaccess?  If not you can do this by turning friendly url on or off depending on your settings.  Then set them back to normal, clear your browser cache.

 

also clear smarty cache, under advanced pref-->performance

just tried again. It did regenerated htaccess under in my subfolder but not in the root. How do i generate one in root?

Link to comment
Share on other sites

  On 6/14/2014 at 12:11 AM, fishordog said:

just tried again. It did regenerated htaccess under in my subfolder but not in the root. How do i generate one in root?

 

prestashop will only generate the .htaccess in your subfolder, i.e. to  ps that is root.

 

you would need from what I can tell is to create (or modify existing) .htaccess in root. With following:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$
RewriteRule ^(/)?$ SUBFOLDER_NAME [L]
</IfModule>
Link to comment
Share on other sites

  On 6/14/2014 at 12:20 AM, El Patron said:

 

prestashop will only generate the .htaccess in your subfolder, i.e. to  ps that is root.

 

you would need from what I can tell is to create (or modify existing) .htaccess in root. With following:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?YourDomain.com$
RewriteRule ^(/)?$ SUBFOLDER_NAME [L]
</IfModule>

 

I really appreciate your help, it worked. Everything redirects properly now. Thank you

  • Like 1
Link to comment
Share on other sites

Kind of off topic but could you tell me what could be the problem:

everything seems to work fine now but i noticed under configuration info in BO

 

 Check your configuration
Required parameters: Please fix the following error(s)
Optional parameters: OK
 
 
It's not showing what exactly to fix
Link to comment
Share on other sites

  On 6/14/2014 at 3:01 AM, fishordog said:

 

Kind of off topic but could you tell me what could be the problem:

everything seems to work fine now but i noticed under configuration info in BO

 

 Check your configuration
Required parameters: Please fix the following error(s)
Optional parameters: OK
 
 
It's not showing what exactly to fix

 

 

like you I'm not sure what to make of that.

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...