Link to home
Start Free TrialLog in
Avatar of CAE5942
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

                    <li><a href="<?php echo $this->getUrl('about-us')?>">About us</a></li>

Open in new window


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>

Open in new window


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
Avatar of lenamtl
lenamtl
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CAE5942
CAE5942

ASKER

Thanks very much
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