#
# NuSEO.PHP .htaccess
#

#
#  Option FollowSymLinks can be uncommented if needed
#
##Options FollowSymLinks

#
# To fully disable NuSEO.PHP comment the following line. (or rename this .htaccess file)
#
RewriteEngine On



#### start subdomain logic
###	RewriteCond %{HTTP_HOST} !^test$ [NC]
###	RewriteCond %{HTTP_HOST} ^([A-Z0-9a-z-]+)\.test$ [NC]
###	RewriteCond %{DOCUMENT_ROOT}/%1 -d
###	RewriteCond %{REQUEST_URI} !^/?phpfox/
###	RewriteCond %{QUERY_STRING} !nuseourl=
###	RewriteRule ^/?(.*)$ %1/$1	[L]
#### end subdomain logic


#
# NuSEO.PHP Sitemap Generator Rules
#
RewriteRule ^(sitemap.*\.xml(\.gz)?)$ nuseo/sitemap/nuseo_sitemap_dispatcher.php?sitemap=$1 [L]
RewriteRule ^(sitemapprogress.log)$ nuseo/sitemap/nuseo_sitemap_dispatcher.php?sitemap=$1 [L]
RewriteRule ^(sitemaprequests.log)$ nuseo/sitemap/nuseo_sitemap_dispatcher.php?sitemap=$1 [L]



#
# NuSEO.PHP phpFox Add-on Rules (e.g. Arcade, Video, etc)
#
## RewriteCond %{REQUEST_URI} ^(arcade|video)
## RewriteRule ^(.*)$ public/$1




#
#  NuSEO.PHP Directory Index Rules (for Apache 1.x and 2.0)
#
##  RewriteRule ^$ index.php
##  RewriteCond %{REQUEST_FILENAME} -d
##  RewriteCond %{REQUEST_FILENAME}/index.php -f
##  RewriteRule ^(.*)/$ $1/index.php	



#
# NuSEO.PHP Rule #1
#
RewriteCond %{QUERY_STRING} !nuseourl=
RewriteCond %{REQUEST_URI} !(nuseo/admin)
## RewriteCond %{HTTP_HOST} mydomain\.com 
## RewriteCond %{REMOTE_ADDR} (67.32.139.170|67.191.58.190)
RewriteRule ^(.*\.php)$ nuseo/nuseo.php?nuseourl=$1 [L,QSA]



#
# NuSEO.PHP Rule #2
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
## RewriteCond %{HTTP_HOST} mydomain\.com 
## RewriteCond %{REMOTE_ADDR} (67.32.139.170|67.191.58.190)
RewriteRule ^(.+)$ nuseo/nuseo.php?nuseourl=$1 [L,QSA]
