Title: sforler's Replies | WordPress.org

---

# sforler

  [  ](https://wordpress.org/support/users/sforler/)

 *   [Profile](https://wordpress.org/support/users/sforler/)
 *   [Topics Started](https://wordpress.org/support/users/sforler/topics/)
 *   [Replies Created](https://wordpress.org/support/users/sforler/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/sforler/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/sforler/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/sforler/engagements/)
 *   [Favorites](https://wordpress.org/support/users/sforler/favorites/)

 Search replies:

## Forum Replies Created

Viewing 1 replies (of 1 total)

 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [404 pages when index.php appended to the URL of a directory style permalinks URL](https://wordpress.org/support/topic/404-pages-when-indexphp-appended-to-the-url-of-a-directory-style-permalinks-url/)
 *  Thread Starter [sforler](https://wordpress.org/support/users/sforler/)
 * (@sforler)
 * [13 years ago](https://wordpress.org/support/topic/404-pages-when-indexphp-appended-to-the-url-of-a-directory-style-permalinks-url/#post-3673084)
 * 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 ^(.*)$ http://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 (.*) http://www.dogcollarsboutique.com/$1 [R=301,L]
       </IfModule>
       ```
   

Viewing 1 replies (of 1 total)