Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
501 views
in Q2A Core by

Thanks it's work correctly. I use this one
--------------------------------------------------------------------------------------------------------
http://www.ask.dnoj.ir  --->>  ask.dnoj.ir
Options +FollowSymLinks
DirectoryIndex index.php
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} robots.txt$ [NC]
RewriteRule ^([^/]+) $1 [L]
RewriteCond %{HTTP_HOST} ^www.ask.dnoj\.ir
RewriteRule ^(.*)$ http://ask.dnoj.ir/$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>
--------------------------------------------------------------------------------------------------------

but some pages like
http://www.ask.dnoj.ir/%D9%82%D9%88%D8%A7%D9%86%DB%8C%D9%86 don't redirect to the

 http://ask.dnoj.ir/%D9%82%D9%88%D8%A7%D9%86%DB%8C%D9%86
please help me to solve this problem too

2 Answers

0 votes
by
Anyone can't help me?
0 votes
by
Why anyone can't answer me?
...