Panel
PowerQA is a state of the art discussion software that makes online discussions fun. It's simple, fast, and powerful.
Newbie
yerbol89
+1 vote
QA 588 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.9.4. It is enhanced day by day.

Statistics

  • 338 questions
  • 276 answers
  • 480 comments
  • 100 users

Post types

...