Panel
Newbie
yerbol89
+1 vote
QA 98 views

How i redirect my domain in subdomain?

I edit my .htaccess file. I was move my http://szh.kz -> http://surak.szh.kz  Its true?

DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} robots.txt$ [NC]
RewriteRule ^([^/]+) $1 [L]
RewriteCond %{HTTP_HOST} ^www.szh\.kz
RewriteRule ^(.*)$ http://surak.szh.kz/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^szh\.kz
RewriteRule ^(.*)$ http://surak.szh.kz/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^www.surak.szh\.kz
RewriteRule ^(.*)$ http://surak.szh.kz/$1 [R=301,L]
#RewriteBase /
RewriteCond %{REQUEST_URI} ^(.*)//(.*)$
RewriteRule . %1/%2 [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^.*$ index.php?qa-rewrite=$0&%{QUERY_STRING} [L]
</IfModule>

by yerbol89 asked Nov 9, 2015 in Core

1 Comment

Yes  the code is correct

Please log in or register to add a comment.

Please log in or register to answer this question.

Welcome to PowerQA. PowerQA is a new discussion software (not OSS). Here is a community for PowerQA developers. Current stable version is V1.8.6. It is enhanced day by day.

Statistics

  • 333 questions
  • 272 answers
  • 465 comments
  • 91 users

Post types

...