Welcome Guest, Not a member yet? Register   Sign In
Forbid the site's browsing to anyone but not to me
#5

[eluser]TheFuzzy0ne[/eluser]
Try this:
Code:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/maintenance.php
RewriteCond %{REMOTE_HOST} !^127\.0\.0\.1
RewriteRule $ /maintenance.php [NC,L]

# If the URL starts with the following, redirect to the index.php.
# This is not necessary if you don't have your application or system directories in your Web root.
RewriteCond %{REQUEST_URI} ^/(system|application)
RewriteRule ^(.*)$ /index.php/$1 [L]

# Check to see if the file or directory exists. If it doesn't, re-route via index.php.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php/$1 [L]

The order was incorrect, so it was mangling the URL. I've also edited your existing .htaccess data to make it a little more robust.

If that doesn't work, you may need to substitute the IP address with your actual internal IP address. i.e 192.168.0.1, or whatever.


Messages In This Thread
Forbid the site's browsing to anyone but not to me - by El Forum - 03-23-2013, 02:23 PM
Forbid the site's browsing to anyone but not to me - by El Forum - 03-23-2013, 03:05 PM
Forbid the site's browsing to anyone but not to me - by El Forum - 03-24-2013, 04:01 AM
Forbid the site's browsing to anyone but not to me - by El Forum - 03-24-2013, 06:13 AM
Forbid the site's browsing to anyone but not to me - by El Forum - 03-24-2013, 07:34 AM
Forbid the site's browsing to anyone but not to me - by El Forum - 03-24-2013, 04:14 PM



Theme © iAndrew 2016 - Forum software by © MyBB