i have this domain
-www.toranj-gem.com
it is working with plesk contol panel and do not have redirect option!
in the root folder (httpdocs) i have "index.html" is intro page & "index.php"
the index.php is main page of a cms
i want to lock www and index.html when users visit my website for the first time and then when them visits index.php "www" is lock for other pages !
is it possible ?
i am using this code in the root's .htaccess file
- Code: Select all
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} !^www\.toranj-gem\.com$ [NC]
RewriteRule ^(.*) http://www.toranj-gem.com/$1 [QSA,L,R=301]
RewriteRule ^$ http://www.toranj-gem.com/index.php [QSA,L,R=301]
---------------
another problem :
i have a subfolder in the root named "en"
and i was installed a new cms in this folder
i want to lock www and index.php for this cms too
and finally i have this address
-www.toranj-gem.com/en/index.php
how can i do this ?
i am using this code in the "en" 's .htaccess file
- Code: Select all
RewriteEngine On
RewriteBase /
RewriteRule ^$ http://www.toranj-gem.com/en/index.php [QSA,L,R=301]
and this code locks the "index.php" for both this to addresses
-toranj-gem.com/en/index.php
-www.toranj-gem.com/en/index.php
but i want one of this addresses (-www.toranj-gem.com/en/index.php)
so if possible plz incude the correct codes for me here
tnx