Christiaan_01 Posted September 6, 2013 Share Posted September 6, 2013 I've tried to follow Benjamin Utterback's topic [uPGRADE TIPS], in order to create a duplicate of my website on a subdomain. Then I should be able to upgrade it on the subdomain and test it thoroughly before I upgrade my main website. I've duplicated both the website, as well as the SQL database, and configured those accordingly. The problem I face right now is this: When I go to subdomain.mydomain.com I get redirected to www.mydomain.com. The path of the subdomain looks like this: public_html/subdomain I tried to configure the .htaccess file, but to no avail. There is no 301 redirect. However this is what I find in the .htaccess file: RewriteEngine on RewriteCond %{HTTP_HOST} ^www.mydomain.com$ RewriteRule . - [E=REWRITEBASE:/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] as well as other rules for images and multistore. Anyone has an idea on how to solve this one? Thanks Link to comment Share on other sites More sharing options...
bellini13 Posted September 6, 2013 Share Posted September 6, 2013 you need to access the back office and change the URL of the website to subdomain.mydomain.com. If you can't access the back office, then access the database using phpmyadmin and browse the ps_shop_url table. You can then alter the domain and domain_ssl columns directly. I would rename your htaccess file until you can log into the back office and regenerate it by saving the SEO and URL page 1 Link to comment Share on other sites More sharing options...
Christiaan_01 Posted September 6, 2013 Author Share Posted September 6, 2013 Thanks man! Awesome. It works now. 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