What in this .htaccess is breaking my wordpress?
-
I just installed wordpress, which went fine. I can get to the wp-admin side and configure things, but when I go to my customer side, it never shows anything. I figured out it’s in my .htaccess file, because when I remove it everything works fine. I need it for other things, so I really need to know what to add to make wordpress work correctly.
Any help would be greatly appreciated (I did search thru 15 pages here before asking this question). The search function doesn’t seem to work.
Here is my .htaccess file:
AddHandler application/x-httpd-php4 .php DirectoryIndex home.php index.php index.html # SAFETYNET REWRITE RULES Options +SymlinksIfOwnerMatch <IfModule mod_rewrite.c> RewriteEngine on RewriteBase / RewriteCond %{HTTP_HOST} !^www\.premiumpowersports\.com [NC] RewriteCond %{HTTP_HOST} !^www\.cheapfrags\.com [NC] RewriteRule ^(.*)$ https://www.premiumpowersports.com/$1 [R=301,L] RewriteRule ^(.*)-p-([0-9]*)-c-([0-9]*)-sort-(.*)-sdir-([0-9]*).html$ home.php?cat=$3&page=$2&sort=$4&sort_direction=$5 [L] RewriteRule ^(.*)-p-([0-9]*)-c-([0-9]*).html$ home.php?cat=$3&page=$2 [L] RewriteRule ^(.*)-c-([0-9]*).html$ home.php?cat=$2 [L] RewriteRule ^(.*)-mid-([0-9]*)-p-([0-9]*)-sort-(.*)-sdir-([0-9]*).html$ manufacturers.php?manufacturerid=$2&page=$3&sort=$4&sort_direction=$5 [L] RewriteRule ^(.*)-mid-([0-9]*)-p-([0-9]*).html$ manufacturers.php?manufacturerid=$2&page=$3 [L] RewriteRule ^(.*)-mid-([0-9]*).html$ manufacturers.php?manufacturerid=$2 [L] RewriteRule ^(.*)-p-([0-9]*).html$ product.php?productid=$2 [L] RewriteRule ^(.*)-sp-([0-9]*).html$ pages.php?pageid=$2 [L] RewriteRule ^(.*)-p-([0-9]*).html&xid=(.*)$ product.php?productid=$2&xid=$3 [L] RewriteRule ^(.*)-c-([0-9]*).html&xid=(.*)$ home.php?cat=$2&xid=$3 [L] RewriteRule ^(.*)-mid-([0-9]*).html&xid=(.*)$ manufacturers.php?manufacturerid=$2&xid=$3 [L] RewriteRule ^(.*)-sp-([0-9]*).html&xid=(.*)$ pages.php?pageid=$2&xid=$3 </IfModule> # END SAFETYNET #block all smarty templates (no reason to have these exposed) RedirectMatch gone ^/.*\.tpl$ # block the entire log directory ReDirect gone /log # block all .log (log files), .sql (sql dump/export) and .conf (config files) files # in case some day these files move to another directory RedirectMatch gone ^.*\.(sql|log|conf)$ # block access to the 'Smarty-*' directory RedirectMatch gone ^.*Smarty.*$ # block access to /upgrade Redirect gone /upgrade # block access to /skin1_original Redirect gone /skin1_original # block access to the /sql directory Redirect gone /sql # block access to the /shipping directory Redirect gone /shipping # block access to the pgp directories Redirect gone /.pgp Redirect gone /.pgp.def
- The topic ‘What in this .htaccess is breaking my wordpress?’ is closed to new replies.