Options +FollowSymLinks -MultiViews

RewriteEngine On
RewriteBase /
#company page
RewriteRule ^blog-detail/(.*)  blog-detail.php?$1 [NC]
RewriteRule ^product/(.*)  product.php?$1 [NC]


# Permanant Redirect 301 Category and Subcategory Page

RewriteRule ^/?category/([^/]+) /$1 [R=301,NC,L]
RewriteRule ^/?subcategory/([^/]+) /$1 [R=301,NC,L]
RewriteRule ^help-detail/(.*)  help-detail.php?$1 [NC]
RewriteRule ^wishlist/(.*)  wishlist.php?$1 [NC]
RewriteRule ^wishlist-remove/(.*)  wishlist-remove.php?$1 [NC]
RewriteRule ^occasion/(.*)  occasion.php?$1 [NC]
RewriteRule ^blog-cagetory/(.*)  blog-cagetory.php?$1 [NC]

ErrorDocument 404 /404.php
RewriteCond %{REQUEST_FILENAME}.php  -f [NC]

RewriteRule ^ %{REQUEST_URI}.php   [L]

#any file with one /category -- redirect to category page
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^./]+)$  category.php?$1 [L,NC]

