CAE5942
asked on
Changing base url in Magento website
Hi everyone,
I need to change the url of some of the pages in my magento website. For example instead of:
http://www.mystore.com/about-us
I need to change it to:
http://www.mystore.com/company
The following code snippet was found at /template/page/html/header .phtml
To change the url of the About Us page, is it as simple as changing that one line of code to:
Or do I need to change other sections of the code in other parts of the site?
My php is very limited so I'd really appreciate any assistance.
Thanks in advance.
I need to change the url of some of the pages in my magento website. For example instead of:
http://www.mystore.com/about-us
I need to change it to:
http://www.mystore.com/company
The following code snippet was found at /template/page/html/header
<li><a href="<?php echo $this->getUrl('about-us')?>">About us</a></li>
To change the url of the About Us page, is it as simple as changing that one line of code to:
<li><a href="<?php echo $this->getUrl('company')?>">Company</a></li>
Or do I need to change other sections of the code in other parts of the site?
My php is very limited so I'd really appreciate any assistance.
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
you actually don't even have to do that. It's a simple .htaccess edit. requiring magento to always handle redirects is troublesome.
redirect /oldurl http://www.example.com/newurl
redirect /oldurl http://www.example.com/newurl
ASKER