.htaccess - Unable to make a 301 domain redirection -
Hello I have an application that uses OpenCart I want to radiate a 301 in case of user types. (301 status codes)
Here is my .htaccess content:
ReviveIngnant ON \ #OPENCARTRewart StartRight% {REQUEST_FILENAME}! -RevertRank% {REQUEST_FILENAME}! -d Recruitment Rule ^ (. *) Index.php \ #OPENCART Revives END Revive Engines Revealbase / Rewritten% {HTTP_HOST}! ^ Www.example.com $ [nc] Reiter rules ^ (. *) $ Http: / /www.example.com/$1 [R = 301, L]
Instead get 302 redirection.
Thanax, granite
Try it with a different order Keep your rules Which causes an external redirect that only causes an internal redirection:
RewriteEngine On RewriteCond% {HTTP_HOST}! ^ Www.example.com $ [NC] RewriteRule ^ (. *) $ Http://www.example.com/$1 [R = 301, L] #OPENCART Revives StartRightcut% {REQUEST_FILENAME}! -f rewrite code% {REQUEST_FILENAME}! -D Rivetrium ^ (. *) Index.php # OpenCart revives and
Comments
Post a Comment