Soru - Cevap scripti olan Question2Answer için htaccess dosyası seo ayarı için önemli bir konudur.
Web sitenizin http yada https için htaccess dosyaları ;
HTTP / HTACCESS DOSYASI
- DirectoryIndex index.php
- <IfModule mod_rewrite.c>
- RewriteEngine On
- #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>
HTTPS / HTACCESS DOSYASI
- DirectoryIndex index.php
- <IfModule mod_rewrite.c>
- RewriteEngine On
- #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]
- RewriteCond %{HTTP_HOST} !^www.
- RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]
- </IfModule>