.htaccess strange
3 naročniki
3 naročniki
Mam en res čudn problem(kt zmer pr tem .htaccessu).
Inštaleram jst sNews pa dodam to kodo v .htaccess:
<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>
RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.massagechairsworld\.com [NC]
RewriteRule ^(.*) http://www.massagechaiesworld.com/$1 [L,R=301]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/ index.php?category=$1&title=$2&commentspage=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/([0-9]+)/ index.php?category=$1 articlespage=$2 [L]
In ko je to na serverju, vpišem www.massagechairsworld.com v FF in namesto da bi me preusmerl na mojo stran, me vrže na DynaDot.com. Tega URLja ni v kodi, edin domena je tm registrerana. Whatever...
8 odgovorov
Meni massagechairsworld.com in www.massagechairsworld.com vrže na http://massagechairsworld.com :)
Z identičnim .htaccess nimam nobenih težav
Ti imaš problem v snews.php ! Dodaj / tam pri urlju
$db['website'] = 'http://www.massagechairsworld.com/';