1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
<IfModule mod_rewrite.c> RewriteEngine on RewriteBase / #redirect without www #RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC] #RewriteRule ^(.*)$ http://%1/$1 [R=301,L] #RewriteCond %{HTTPS} off #RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L] Options +FollowSymLinks RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ index.php [NC,L] ErrorDocument 403 /403.php ErrorDocument 404 /404.php ErrorDocument 500 /500.html </IfModule> |
1 2 3 4 5 |
Redirect 301 ⁄wpis1 ⁄wpis2 Redirect 301 ⁄wpis1 http:⁄⁄strona⁄wpis2 Redirect ⁄ http:⁄⁄inna-domena⁄ |