Forum Moderators: phranque
Here is my .htaccess content:
#Options +FollowSymlinks
<IfModule mod_rewrite.c>
RewriteEngine On
#OPENCART REWRITES START
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*) index.php
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.example\.com$ [NC]
RewriteRule ^(.*)$ http://www.example.com/$1 [R=301,L]
#OPENCART REWRITES END
</IfModule>
I am getting 302 status code.
Thanx,
Granit
[edited by: phranque at 1:42 pm (utc) on Oct. 19, 2009]
[edit reason] exemplified domains [/edit]
what type of url are you requesing?
what type of url are you redirecting to?
could there be additional redirection directives in the apache config file?
could that index.php script be returning a 302 response?
In general, you should always place your external redirect rules first, in order from most-specific (one or a few URLs affected) to least specific (more URLs affected), followed by internal rewrites, again in order from most- to least-specific.
Jim