File: /home/httpd/html/naced.com/public_html/.htaccess
### --------------------------------------------------------------- ###
### MECHBUNNY HTACCESS FILE ###
### --------------------------------------------------------------- ###
DirectoryIndex index.php
ErrorDocument 404 /404.php
ErrorDocument 403 /403.php
Options -Indexes -Multiviews
AddDefaultCharset utf-8
#php_value default_charset "utf-8"
#php_flag display_errors off
#php_flag error_reporting 7
#php_flag register_globals off
#php_flag magic_quotes_gpc off
### --------------------------------------------------------------- ###
### DO NOT EDIT BELOW THIS LINE UNLESS YOU KNOW WHAT YOU ARE DOING! ###
### --------------------------------------------------------------- ###
##START MOD_REWRITE
RewriteEngine On
##Return default placeholder image when image file on server not found
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule \.(gif|jpe?g|png) /includes/image404.php [NC,L]
##AJAX
RewriteRule ^ajax/([a-z-]+)$ core/ajax/$1.php [L,QSA]
##FILTERS
RewriteRule ^filters$ index.php?controller=filters [L,QSA]
##MEDIA
RewriteRule ^page([0-9]+).html$ index.php?controller=index&page=$1 [L,QSA]
RewriteRule ^webcams/(.*)-(.*).html$ index.php?controller=performer&username=$1&site=$2 [QSA]
##SITEMAPS
RewriteRule ^sitemap.xml$ includes/sitemap/sitemap.php [L,QSA]
RewriteRule ^sitemapPerformers.xml$ includes/sitemap/sitemapPerformers.php [L,QSA]
RewriteRule ^sitemapTags.xml$ includes/sitemap/sitemapTags.php [L,QSA]
RewriteRule ^robots.txt$ index.php?controller=robots [L,QSA]
##STATIC CONTROLLERS
RewriteRule ^signup$ index.php?controller=signup [QSA]
RewriteRule ^validate$ index.php?controller=validate [QSA]
RewriteRule ^login$ index.php?controller=login [QSA]
RewriteRule ^logout$ index.php?controller=logout [QSA]
RewriteRule ^contact$ index.php?controller=contact [QSA]
RewriteRule ^forgot-password$ index.php?controller=forgot_pass [QSA]
RewriteRule ^resend-verification$ index.php?controller=resend_verification [QSA]
RewriteRule ^favorites/$ index.php?controller=favorites [QSA]
RewriteRule ^my-profile$ index.php?controller=my_profile [L]
RewriteRule ^edit-profile$ index.php?controller=edit_profile [L]
RewriteRule ^static/(.*)$ index.php?controller=displayStatic&id=$1 [QSA]
RewriteRule ^load/(.*)$ index.php?controller=loadLayout&id=$1 [QSA]
RewriteRule ^404.php$ index.php?controller=404 [QSA]
RewriteRule ^403.php$ index.php?controller=403 [QSA]
RewriteRule ^a/(.*)$ index.php?controller=link&slug=$1 [QSA]
RewriteRule ^tags/$ index.php?controller=tags [QSA]
RewriteRule ^languages/$ index.php?controller=languages [QSA]
RewriteRule ^sites/$ index.php?controller=sites [QSA]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule ^(.*) index.php?controller=router&url=$1 [L,QSA]