GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   htaccess Allow access rule... (https://gfy.com/showthread.php?t=1038347)

acctman 09-16-2011 09:27 AM

htaccess Allow access rule...
 
Hi I want to allow my IP 127.0.0.1 access to index.php and all other viewer forced to index.html. How would I write this htaccess rule

Bladewire 09-16-2011 09:48 AM

Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} !^127\.0\.0\.1
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule \.php$ /index.php [R=302,L]

unless all are automatically already directed to your index.php I don't know how your server is setup

acctman 09-16-2011 10:00 AM

Quote:

Originally Posted by Squirtit (Post 18431780)
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} !^127\.0\.0\.1
RewriteCond %{REQUEST_URI} !/index\.php$
RewriteRule \.php$ /index.php [R=302,L]

thanks...


All times are GMT -7. The time now is 03:49 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123