Quote:My .htaccess in public_html, aka / (root)
Options +FollowSymlinks +Includes +SymLinksIfOwnerMatch +ExecCGI -MultiViews -Indexes
<files .htaccess>
Order allow,deny
Deny from all
</files>
ErrorDocument 404 /agentc0re/404/index.html
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} off
RewriteCond %{HTTP_HOST} ^www\.agentc0re.com$ [NC]
RewriteRule ^(.*)$ http://agentc0re.com/$1 [R=301,L,NC]
RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} ^www\.agentc0re.com$ [NC]
RewriteRule ^(.*)$ https://agentc0re.com/$1 [R=301,L,NC]
RewriteCond %{HTTP_HOST} ^(www.)?agentc0re.com$ [NC]
RewriteCond %{REQUEST_URI} !^/agentc0re/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /agentc0re/$1 [L]
RewriteCond %{HTTP_HOST} ^(www.)?agentc0re.com$ [NC]
RewriteRule ^(/)?$ agentc0re/index.php [L]
</IfModule>
#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>
Quote:.htaccess in /agentc0re <-pseudo root
Options +FollowSymlinks +Includes +SymLinksIfOwnerMatch +ExecCGI -MultiViews -Indexes
<files .htaccess>
Order allow,deny
Deny from all
</files>
<IfModule mod_rewrite.c>
RewriteEngine On
#### agentc0re Rewrite Rules ####
RewriteBase /agentc0re/
RewriteRule ^Home/?$ /index.php?page= [L]
RewriteRule ^Blog/?$ /index.php?page=blog [L]
RewriteRule ^Forum/?$ /index.php?page=forum/index [L]
RewriteRule ^Sub_Counter/?$ /index.php?page=SubCounter/subCounter [L]
RewriteRule ^AboutMe/?$ /index.php?page=aboutme [L]
RewriteRule ^Contact/?$ /index.php?page=contact [L]
#### Blog Rewrite Rules ####
RewriteBase /agentc0re/blog/
RewriteRule ^index\.php$ - [L]
RewriteBase /agentc0re/blog/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^Blog/(.*)$ ../index.php?page=blog [L,NC]
RewriteCond %{REQUEST_URI} !^/agentc0re/blog/.*$
RewriteRule ^Blog/(.*)$ /agentc0re/blog/$1 [L]
#### Forum Rewrite Rules ####
#Redirect 302 Forum/ /Forum/
RewriteRule ^Forum/(.*)$ /agentc0re/forum/$1 [L]
RedirectMatch 302 ^agentc0re/forum/(.*)$ http://agentc0re.com/Forum/$1
#RedirectMatch 302 ^/Forum$ http://agentc0re.com/Forum/
#RewriteRule ^/?$ /Forum/ [L]
#RewriteRule ^/agentc0re/forum/(.*)$ /Forum/$1 [L]
#RedirectMatch 302 ^/Forum/(.*)$ http://agentc0re.com/agentc0re/forum/$1
#### Forum Rewrite SEO Rules ####
# RewriteBase /agentc0re/forum/
#
# RewriteRule ^forum-([0-9]+)\.html$ forumdisplay.php?fid=$1 [L,QSA]
# RewriteRule ^forum-([0-9]+)-page-([0-9]+)\.html$ forumdisplay.php?fid=$1&page=$2 [L,QSA]
#
# RewriteRule ^thread-([0-9]+)\.html$ showthread.php?tid=$1 [L,QSA]
# RewriteRule ^thread-([0-9]+)-page-([0-9]+)\.html$ showthread.php?tid=$1&page=$2 [L,QSA]
# RewriteRule ^thread-([0-9]+)-lastpost\.html$ showthread.php?tid=$1&action=lastpost [L,QSA]
# RewriteRule ^thread-([0-9]+)-nextnewest\.html$ showthread.php?tid=$1&action=nextnewest [L,QSA]
# RewriteRule ^thread-([0-9]+)-nextoldest\.html$ showthread.php?tid=$1&action=nextoldest [L,QSA]
# RewriteRule ^thread-([0-9]+)-newpost\.html$ showthread.php?tid=$1&action=newpost [L,QSA]
# RewriteRule ^thread-([0-9]+)-post-([0-9]+)\.html$ showthread.php?tid=$1&pid=$2 [L,QSA]
#
# RewriteRule ^post-([0-9]+)\.html$ showthread.php?pid=$1 [L,QSA]
#
# RewriteRule ^announcement-([0-9]+)\.html$ announcements.php?aid=$1 [L,QSA]
#
# RewriteRule ^user-([0-9]+)\.html$ member.php?action=profile&uid=$1 [L,QSA]
#
# RewriteRule ^calendar-([0-9]+)\.html$ calendar.php?calendar=$1 [L,QSA]
# RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)\.html$ calendar.php?calendar=$1&year=$2&month=$3 [L,QSA]
# RewriteRule ^calendar-([0-9]+)-year-([0-9]+)-month-([0-9]+)-day-([0-9]+)\.html$ calendar.php?action=dayview&calendar=$1&year=$2&month=$3&day=$4 [L,QSA]
# RewriteRule ^calendar-([0-9]+)-week-(n?[0-9]+)\.html$ calendar.php?action=weekview&calendar=$1&week=$2 [L,QSA]
#
# RewriteRule ^event-([0-9]+)\.html$ calendar.php?action=event&eid=$1 [L,QSA]
<IfModule mod_env.c>
SetEnv SEO_SUPPORT 1
</IfModule>
</IfModule>
#
# If Apache is compiled with built in mod_deflade/GZIP support
# then GZIP Javascript, CSS, HTML and XML so they're sent to
# the client faster.
#
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>
And then everything in /agentc0re/forum is pretty much commented out. I am not doing any SEO rules until i figure this out.
If anything doesn't make sense, let me know & i'll try to make sense of it.
-Jon