3

I have a CMS-Website and a SHOP-Wensite and I try to redirect the Magento Homepage to my CMS-Homepage. At my server the cms and magento are in two diffrent folders. If I click at myshop.domain.com it should be redirect to cms.domain.com

I've tried with a new page in magento and at "system > configuration > web > default pages" I choose my new page as home page.

At this page I can't use PHP (header location) ...or Javascript (document.location.href)

How can I redirect (301) my Magento HomePage to my CMS-Homepage?

With htaccess? I found Catalog > URL Redirects but my 301 didn't work?!

3 Answers 3

6

You should set ../ as target path, see the screenshot below:

enter image description here

Now request to www.domain.com/network-nvr201-08lp will redirect to www.domain.com.

1
2

Catalog > URL Rewrite Management > Add New URL Rewrite

Refer

3
  • It worked if I try myshop.domain.com/test.html redirect 301 to google.com or what ever, but if I try "/" redirect to "cms.domain.com .. nothing happend Commented Jul 23, 2013 at 16:50
  • Thanks for your tips, but I want to redirect my HomePage (/) and that doesen't work. I work with 1.13.0 Commented Jul 24, 2013 at 7:26
  • I found this, but It doesn't work RewriteEngine on RewriteRule ^$ example.com [R=301,L][] Commented Jul 24, 2013 at 14:38
1

I know this comes a couple of years later, but I've found myself in that same problem today.

I've solved it with a RewriteRule on the .htaccess file. In my case it's been something similar to:

GOOD EXAMPLE:
RewriteRule ^images/(.*) https://myothersite.com/myimages [L,R=301]

It worked like a charm!

I've found that it is important the order of the optional flags. For example:

BAD EXAMPLE - DO NOT USE!
RewriteRule ^images/(.*) https://myothersite.com/myimages **[R=301,L]**

Didn't work and was giving me a 500 HTTP error code.

Adding to the links shown on Srikanth AD answer I'm adding this one too (disclaimer 2: this is autopromo as I've written it myself :P):

Coming late, but hope it helps someone else!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.