we caboodle News

In Magento, How to redirect all non www pages to www pages

News Categories: eCommerce SoftwareMagento

This article was published on: 04/1/21 5:08 PM

In Magento this is how to redirect all non www pages to www pages using the .htaccess with an FTP client like FileZilla.

Open up .htaccess to edit the file then do a find in file and look for #RewriteBase.

#RewriteBase /magento/ under this line paste the following but remember to change www.youwebsite.com with your own URL.

RewriteCond %{HTTP_HOST} !^www.youwebsite.com$ [NC]

RewriteRule ^(.*)$ http://www.youwebsite.com/$1 [L,R=301]

After this we tend to run the following command via SSH:

php -f shell/indexer.php reindexall

That’s it, we always recommend backing up your files before making any changes.

If you need any help with Magento please contact us for pricing.

we caboodle - full service agency team

Ready to Start?

we are driven by the challenge of building a bespoke website for your business, improve SEO performance, fix UX/UI issues and streamline your branding across all social & paid channels.

Are you looking for a new, full service agency? contact us today for a free quotation or advice, and lets build something great, together!





    William Holt

    Meet Will

    I've been designing & developing websites for over 2 decades. my first project was built on Microsoft Frontpage, yes I go that far back!

    Speak to me direct regarding your next project or the benefits of switching your digital agency to Web Caboodle

    will@wecaboodle.com | 07368 229004 | LinkedIn Profile

    Web Design Manchester

    Studio 13
    Woolden Road

    Web Design London

    71-75 Shelton Street
    Covent Garden

    let's connect


    Copyright 2023 Web Caboodle - Web Design and Development Agency | We Website Design Ltd 13127888 Registered in England and Wales | Privacy Policy