MOJA-DOMENA.com.pl --> Mam domenę z myślnikiem po środku
Co w tym kodzie jest nie tak, że przekierowanie strony z moja-domena.com.pl na www.moja-domena.com.pl nie działa?
Kod
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^MOJA-DOMENA.com.pl$ [NC]
RewriteRule ^(.*)$ http://MOJA-DOMENA.com.pl/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.)?MOJA-DOMENA\.com.pl$ [NC]
RewriteRule ^(\/.*)?$ http://www.MOJA-DOMENA.com.pl/pl/ [R=301,L]
<IfModule mod_rewrite.c>
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /404.php
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
RewriteEngine On
RewriteCond %{HTTP_HOST} ^MOJA-DOMENA.com.pl$ [NC]
RewriteRule ^(.*)$ http://MOJA-DOMENA.com.pl/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^(www\.)?MOJA-DOMENA\.com.pl$ [NC]
RewriteRule ^(\/.*)?$ http://www.MOJA-DOMENA.com.pl/pl/ [R=301,L]
<IfModule mod_rewrite.c>
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>
<IfModule !mod_rewrite.c>
# If we don't have mod_rewrite installed, all 404's
# can be sent to index.php, and everything works as normal.
# Submitted by: ElliotHaughin
ErrorDocument 404 /404.php
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>