dunngra Posted May 27, 2013 Share Posted May 27, 2013 Hi there, I'm having real difficulty in redirecting my homepage to one of my CMS pages. I have tried placing various different redirect rules in htaccess (outwith the # ~~start~~ and # ~~end~~tags such as: Redirect 301 / http://nourishedbynature.co.uk/index.php?id_cms=4&controller=cms&id_lang=1 No matter what I try I get the error message "This page has a redirect loop". Is there a better way for me to redirect or replace the homepage with my CMS page? Thanks Link to comment Share on other sites More sharing options...
tczaude Posted May 27, 2013 Share Posted May 27, 2013 Hi in some browsers You have block to redirect more than 2 or 3 times i don't remember like chrome. Give your redirect code Why You don't use start page text editor Link to comment Share on other sites More sharing options...
dunngra Posted May 27, 2013 Author Share Posted May 27, 2013 On 5/27/2013 at 12:39 PM, tczaude said: Hi in some browsers You have block to redirect more than 2 or 3 times i don't remember like chrome. Give your redirect code Why You don't use start page text editor Hi there, I'm just trying to edit the default .htaccess (below) to add a 301 redirect like: Redirect 301 / http://nourishedbyna...r=cms&id_lang=1 I need the homepage to be a cms page as I have managed to add an "active" class the top navigation menu for cms pages that allows me to change the background colour of the link for the current page (I can't replicate this for the homepage so I wanted to redirect to a cms page instead). Thanks # ~~start~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again # .htaccess automaticaly generated by PrestaShop e-commerce open-source solution # http://www.prestashop.com - http://www.prestashop.com/forums <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^nourishedbynature.co.uk$ RewriteRule . - [E=REWRITEBASE:/nourished-by-nature/] RewriteRule ^api/?(.*)$ %{ENV:REWRITEBASE}webservice/dispatcher.php?url=$1 [QSA,L] # AlphaImageLoader for IE and fancybox RewriteCond %{HTTP_HOST} ^nourishedbynature.co.uk$ RewriteRule ^images_ie/?([^/]+)\.(jpe?g|png|gif)$ js/jquery/plugins/fancybox/images/$1.$2 [L] </IfModule> #If rewrite mod isn't enabled ErrorDocument 404 /nourished-by-nature/index.php?controller=404 # ~~end~~ Do not remove this comment, Prestashop will keep automatically the code outside this comment when .htaccess will be generated again Link to comment Share on other sites More sharing options...
dunngra Posted May 27, 2013 Author Share Posted May 27, 2013 Still can't seem to find any solution for this - still getting the same error message no matter what I try. Any ideas? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts