.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

Popular posts from this blog

asp.net - Javascript/DOM Why is does my form not support submit()? -

sockets - Delphi: TTcpServer, connection reset when reading -

javascript - Classic ASP "ExecuteGlobal" statement acting differently on two servers -