rcristov Posted May 6, 2014 Share Posted May 6, 2014 Hello, I have a site: Main Domain - http://planetadosbolos.com/ Subdomain - http://lojaonline.planetadosbolos.com/LojaOnline/ And need to redirect the main domain to the subdomain. Can anyone help me doing this? (if possible) Thanks, Rui Cristovao Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2014 Share Posted May 6, 2014 it means that you want to disable website: http://planetadosbolos.com/ you don't want it anymore? Link to comment Share on other sites More sharing options...
rcristov Posted May 6, 2014 Author Share Posted May 6, 2014 Hello Vekia, yes that is correct, but if i move my subdomain to the main domain im afraid to make something wrong, im very newbie in prestashop. Thank, Rui Cristovao Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2014 Share Posted May 6, 2014 create .htaccess file in root of your current website (planetadosbolos.com) with contents Redirect 301 / http://lojaonline.planetadosbolos.com/LojaOnline/ you can also use this generator: http://www.rapidtables.com/web/tools/redirect-generator.htm to create own 301 htaccess redirections Link to comment Share on other sites More sharing options...
rcristov Posted May 6, 2014 Author Share Posted May 6, 2014 (edited) Hello Vekia, ty for the link but i have another question. I generate the code using your link but now where do i place the code? <?php // PHP permanent URL redirect - generated by www.rapidtables.com header("Location: http://lojaonline.planetadosbolos.com/LojaOnline/", true, 301); exit(); ?> Thanks, Rui Cristovao Edited May 6, 2014 by rcristov (see edit history) Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2014 Share Posted May 6, 2014 if you generated php code, create simple .php file named "index.php" and paste this code there. then upload this code to root dir of your http://planetadosbolos.com/ website Link to comment Share on other sites More sharing options...
rcristov Posted May 6, 2014 Author Share Posted May 6, 2014 Hello, Work just fine. Thanks for the help mate. Rui Cristóvão Link to comment Share on other sites More sharing options...
vekia Posted May 6, 2014 Share Posted May 6, 2014 you're welcome i marked topic title as solved. with regards, Milos Link to comment Share on other sites More sharing options...
chevy2002 Posted July 12, 2014 Share Posted July 12, 2014 I almost have the same issue but I want to disable the https redirect. Using version 1.5.6.1 My website is a .com and my other is .net all files, database, etc are the same in both. Domain are the same but different extension. When I type in my domain.net it redirects me to my domain .com Does anyone know how to disable the https redirect. My .com is on my present hosting which will end in Oct, 2014 So I got a new hosting and my domain is .net (temporary), I need to make sure everything is working properly with this new hosting before I turnoff my present hosting. Once I get everything working properly with the .net then I can change the .net to .com thanks Chevy2002 Link to comment Share on other sites More sharing options...
vekia Posted July 13, 2014 Share Posted July 13, 2014 prestashop allows to use only one domain you can't use two domains for the same shop this is how prestashop works Link to comment Share on other sites More sharing options...
chevy2002 Posted July 14, 2014 Share Posted July 14, 2014 ok thanks Link to comment Share on other sites More sharing options...
Recommended Posts