Htaccess File


Options +FollowSymLinks

RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^/(stats|failed_auth.html)/?(.*)$ [NC]
RewriteRule ^.*$ - [L]

# Remove super-old /weblog/ subdirectory 
RewriteRule ^weblog/(.*)$ /$1 [R=301,NC]

# Remove somewhat less old /blog/ subdirectory
RewriteRule ^/blog/(.*)$$1 [L,R=301]

# Replace old underscores with dashes
RewriteCond %{REQUEST_URI} !.(jpe?g|png|bmp|gif|js|css|ttf|woff|svg)$ [NC]
RewriteRule ^([^_]*)_([^_]*)_(.*)$ /$1-$2-$3 [R=301,L]
RewriteCond %{REQUEST_URI} !.(jpe?g|png|bmp|gif|js|css|ttf|woff|svg)$ [NC]
RewriteRule ^([^_]*)_(.*)$ /$1-$2 [R=301,L]

# Redirect that one recurrent bad link to the home page
Redirect 301 /blog/po /
Redirect 301 /

#Redirect projects
Redirect 301 /cpdraft
Redirect 301 /cpfinal
Redirect 301 /infinitesummer

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

# Wordfence WAF
<IfModule mod_suphp.c>
  suPHP_ConfigPath '/home/plannedo/'
<Files ".user.ini">
<IfModule mod_authz_core.c>
  Require all denied
<IfModule !mod_authz_core.c>
  Order deny,allow
  Deny from all

# END Wordfence WAF
Exit mobile version