Hi All
I have a .htaccess issue. A website of mine was working and then stopped I was told the .htaccess was not correct, it work fine then stopped working. It was a while ago and I've only just got round to fixing it code below...
Any ideas?
Options +FollowSymLinks ALL -Indexes
RewriteEngine on
RewriteCond %{HTTP_HOST} ^test.co.uk [NC]
RewriteRule ^(.*)$ http://www.test.co.uk/$1 [L,R=301]
#php_value allow_url_include on
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [L]
RewriteRule ^Villas/(.*)/(.*)$ /villas_idea.php?name=$1&pg=$2 [L]
RewriteRule ^Villas/(.*)$ /villas_idea.php?name=$1 [L]
# RewriteRule ^Map/(.*)/(.*)$ /maps.php?conti=$1&country=$2 [L]
# for town
RewriteRule ^continent/(.*)/(.*)/(.*)/(.*).php/(.*) /maps.php?contifolder=$1&countryfolder=$2&statefolder=$3&gettown=$4&pg=$5 [L]
# for town
RewriteRule ^continent/(.*)/(.*)/(.*)/(.*).php /maps.php?contifolder=$1&countryfolder=$2&statefolder=$3&gettown=$4 [L]
# for states/region
RewriteRule ^continent/(.*)/(.*)/(.*).php /maps.php?contifolder=$1&countryfolder=$2&getstate=$3 [L]
# for countries
RewriteRule ^continent/(.*)/(.*).php /maps.php?contifolder=$1&getcountry=$2 [L]
# for continents
RewriteRule ^continent/(.*).php /maps.php?getconti=$1 [L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 112.208.164.146
I have a .htaccess issue. A website of mine was working and then stopped I was told the .htaccess was not correct, it work fine then stopped working. It was a while ago and I've only just got round to fixing it code below...
Any ideas?
Options +FollowSymLinks ALL -Indexes
RewriteEngine on
RewriteCond %{HTTP_HOST} ^test.co.uk [NC]
RewriteRule ^(.*)$ http://www.test.co.uk/$1 [L,R=301]
#php_value allow_url_include on
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^.*$ - [L]
RewriteRule ^Villas/(.*)/(.*)$ /villas_idea.php?name=$1&pg=$2 [L]
RewriteRule ^Villas/(.*)$ /villas_idea.php?name=$1 [L]
# RewriteRule ^Map/(.*)/(.*)$ /maps.php?conti=$1&country=$2 [L]
# for town
RewriteRule ^continent/(.*)/(.*)/(.*)/(.*).php/(.*) /maps.php?contifolder=$1&countryfolder=$2&statefolder=$3&gettown=$4&pg=$5 [L]
# for town
RewriteRule ^continent/(.*)/(.*)/(.*)/(.*).php /maps.php?contifolder=$1&countryfolder=$2&statefolder=$3&gettown=$4 [L]
# for states/region
RewriteRule ^continent/(.*)/(.*)/(.*).php /maps.php?contifolder=$1&countryfolder=$2&getstate=$3 [L]
# for countries
RewriteRule ^continent/(.*)/(.*).php /maps.php?contifolder=$1&getcountry=$2 [L]
# for continents
RewriteRule ^continent/(.*).php /maps.php?getconti=$1 [L]
<Files 403.shtml>
order allow,deny
allow from all
</Files>
deny from 112.208.164.146