cancel
Showing results for 
Search instead for 
Did you mean: 

.htaccess file causing problems on checkout page

.htaccess file causing problems on checkout page

Hope someone can help me with this. I bought a template and discovered later on that the .htaccess file was empty. I configured the empty .htaccess file with a few 301 Redirects as well as some Rewrite Conditions and Rules, but whatever way I attempted to do this caused an error that was preventing users from being able to advance beyond the register as guest portion of the checkout page. As you might have guessed I'm new to Magento so I'm sure I've gone about it completely wrong. My aim was to remove index.php from all urls including the top level domain and setup some permanent redirects. Below is my attempt at this. Any advice and help would be greatly appreciated.

RewriteEngine On

RewriteCond %{HTTP_HOST} ^seavite\.ie$ [NC]

RewriteRule ^(.*)$ http://www.seavite.ie/$1 [R=301,L]
rewriterule ^(.*)/$ http://%{HTTP_HOST}/$1 [L,R=301]
ErrorDocument 404 http://www.seavite.ie/

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Redirect 301 /index.php/seavite-products.html http://www.seavite.ie/seavite-products.html
Redirect 301 /index.php/our-story http://www.seavite.ie/our-story
Redirect 301 /index.php/stockists http://www.seavite.ie/stockists
Redirect 301 /index.php/our-story http://www.seavite.ie/our-story
Redirect 301 /index.php/contact-us http://www.seavite.ie/contact-us
Redirect 301 /index.php/super-nutrient-comfort-cleanser.html http://www.seavite.ie/super-nutrient-comfort-cleanser.html
Redirect 301 /index.php/super-nutrient-soothing-and-replenishing-face-cream.html http://www.seavite.ie/super-nutrient-soothing-and-replenishing-face-cream.html
Redirect 301 /index.php/super-nutrient-hydrating-face-lotion.html http://www.seavite.ie/super-nutrient-hydrating-face-lotion.html
Redirect 301 /index.php/super-nutrient-radiance-face-serum.html http://www.seavite.ie/super-nutrient-radiance-face-serum.html
Redirect 301 /index.php/super-nutrient-toning-sea-spray.html http://www.seavite.ie/super-nutrient-toning-sea-spray.html
Redirect 301 /index.php/super-nutrient-revitalising-bath-and-shower-gel.html http://www.seavite.ie/super-nutrient-revitalising-bath-and-shower-gel.html
Redirect 301 /index.php/super-nutrient-intense-moisture-body-cream.html http://www.seavite.ie/super-nutrient-intense-moisture-body-cream.html
Redirect 301 /index.php/super-nutrient-firming-and-toning-body-lotion.html http://www.seavite.ie/super-nutrient-firming-and-toning-body-lotion.html
Redirect 301 /index.php/super-nutrient-illuminating-and-firming-body-exfoliator.html http://www.seavite.ie/super-nutrient-illuminating-and-firming-body-exfoliator.html
Redirect 301 /index.php/super-nutrient-purifying-and-volumising-shampoo.html http://www.seavite.ie/super-nutrient-purifying-and-volumising-shampoo.html
Redirect 301 /index.php/seavite-travel-kit.html http://www.seavite.ie/seavite-travel-kit.html
Redirect 301 /index.php/seavite-products/skin-care.html http://www.seavite.ie/seavite-products/skin-care.html
Redirect 301 /index.php/seavite-products/body-care.html http://www.seavite.ie/seavite-products/body-care.html
Redirect 301 /index.php/seavite-products/hair-care.html http://www.seavite.ie/seavite-products/hair-care.html
Redirect 301 /seavite-products/Belfast-Telegraph-September-2015-2.pdf http://www.seavite.ie
Redirect 301 /skin/frontend/default/galawintertime/images/slide_bg.png http://www.seavite.ie
Redirect 301 /checkout/cart/Belfast-Telegraph-September-2015-2.pdf http://www.seavite.ie
Redirect 301 /catalogsearch/result/Belfast-Telegraph-September-2015-2.pdf http://www.seavite.ie
Redirect 301 /index.php/skin-advice http://www.seavite.ie/skin-advice
Redirect 301 /index.php/all-natural-ingredients http://www.seavite.ie/all-natural-ingredients
Redirect 301 /index.php/testimonials http://www.seavite.ie/testimonials
Redirect 301 /index.php/press http://www.seavite.ie/press
Redirect 301 /index.php/eczema-advice http://www.seavite.ie/eczema-advice
Redirect 301 /index.php/sensitive-skin-advice http://www.seavite.ie/sensitive-skin-advice
Redirect 301 /index.php/adult-acne-advice http://www.seavite.ie/adult-acne-advice
Redirect 301 /index.php/rosacea-advice http://www.seavite.ie/rosacea-advice

 

1 REPLY 1

Re: .htaccess file causing problems on checkout page

First make a backup of your htaccess and replaced with the default one that comes with a clean magento installation

 

Second for the index part you can do that from the backend by setting to yes Use Web Server Rewrites from System > Web > Search Engines Optimization 

 

Assuming you have apache as webserver check that you have mod rewrite enabled.