Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter sforler

    (@sforler)

    Yes, I do have </IfModule> at the end in .htaccess, I didn’t copy it out properly.

    Here is the beginning portion of the root .htaccess (the rest is redirects of old pages and parked redirects of domains). Any direction would be greatly appreciated.

    RewriteEngine on
    
    DirectoryIndex home.php index.php index.html
    
    # 301 Rewrite
    rewritecond %{http_host} ^dogcollarsboutique.com [nc]
    rewriterule ^(.*)$ https://www.dogcollarsboutique.com/$1 [r=301,nc]
    
    #SEO Friendly URLs
    Options +SymlinksIfOwnerMatch -Indexes
    <IfModule mod_rewrite.c>
    RewriteEngine on
    RewriteBase /
    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&$3 [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
    RewriteRule ^contact.html$ help.php?section=contactus&mode=update [L]
    RewriteCond %{HTTP_HOST} ^dogcollarsboutique.com
    RewriteRule (.*) https://www.dogcollarsboutique.com/$1 [R=301,L]
    </IfModule>
Viewing 1 replies (of 1 total)