Ok, I found a script to redirect all pages (except if coming from my IP) but it doesn't seem to be working. More than likely the redirecting rule conflicts with whatever else I have in my .htaccess.
I can still view the pages I bookmarked. The main www.mysite.com displays the index.html correctly.
This is what I have there now:
Code:
# Rewrite host name to FQDN
RewriteCond %{HTTP_HOST} ^mysite\.com$
RewriteCond %{REQUEST_METHOD} !POST
RewriteRule ^.*$ http://www\.mysite\.com%{REQUEST_URI} [R=301,QSA,L]
#This will produce a different robots.txt for https, blocking all files
RewriteCond %{SERVER_PORT} 443
RewriteRule ^robots.txt$ robots_ssl.txt [L]
#### BOF SSU
# For security reasons, Option followsymlinks cannot be overridden.
#Options +FollowSymLinks
RewriteEngine On
# Change "/zencart/ to the correct setting
# if your site is located at root folder, then you should have RewriteBase /
# Go to your include/configure.php, this value should be the same with the value of DIR_WS_CATALOG
#RewriteBase /mysite/
# Deny access from .htaccess
RewriteRule ^\.htaccess$ - [F]
RewriteCond %{SCRIPT_FILENAME} -f [OR]
RewriteCond %{SCRIPT_FILENAME} -d
RewriteRule .* - [L]
RewriteRule ^(.+) index.php/$1 [E=VAR1:$1,QSA,L]
#### EOF SSU
##### May 30, 2014 - This is my attempt to redirect all zencat pages to index.html exept for my IP
Options +FollowSymlinks
RewriteEngine on
RewriteCond %{REMOTE_HOST} !^127\.0\.0\.1
RewriteCond %{REQUEST_URI} !/index\.html$
RewriteRule \.html$ /index.html [R=302,L]
Bookmarks