Post by jezfez » Thu Jul 19, 2012 11:31 pm

can anybody spot the error in this htaccess file?

i am trying to redirect eg.

http://cardinalzing.com.au/electronic-c ... ccessories

to

http://www.cardinalzing.com.au/electron ... ccessories

but instead it goes to

http://www.cardinalzing.com.au/index.ph ... ccessories

(remove index.php?_route_= from destination url)

thanks!

Code: Select all

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]

Options +FollowSymLinks
RewriteCond %{HTTP_HOST} !^www\.cardinalzing\.com.au$ 
RewriteRule (.*) http://www.cardinalzing.com.au/$1 [R=301,L]

New member

Posts

Joined
Wed Sep 07, 2011 2:24 pm
Who is online

Users browsing this forum: No registered users and 49 guests