Mobile app version of vmapp.org
Login or Join
BetL925

: Rewrite catalog/index.php to www.domain.co.uk We have an online shop with a welcome page. Our SEO company has asked us to get rid of the welcome page with a rewrite. I am struggling to get

@BetL925

Posted in: #Htaccess #ModRewrite #UrlRewriting

We have an online shop with a welcome page. Our SEO company has asked us to get rid of the welcome page with a rewrite. I am struggling to get this to work. Can you help please?

I want to rewrite domain.co.uk/catalog/index.php to become domain.co.uk using a 301 redirect.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @BetL925

1 Comments

Sorted by latest first Latest Oldest Best

 

@Annie201

To me it looks as if you've installed some software which has created the /catalog folder. Do you have a program which was installed there, ecommerce shopping cart maybe? Or a CMS? If so rather than messing with redirects on your index.

Move the entire folder up to the top level. Then redirect your product or regular pages from /catalog/something to /something. Use canonical attributes on your index to let Google and others know which is your primary home page. In Google and Bing Webmaster Tools areas, specify the correct domain for your index. Re-submit your sitemaps as well.

I would do this so that you can avoid having /catalog appear at all if possible and have domain.co.uk/pagename.php or domain.co.uk/product-name.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme