Well basically the way my site works is this. It is dynamic. I have only four hard coded pages. These four pages are the ones that produce dynamic URLs.
categories_and_featured_products.php, subcategories_and_featured_products.php, products.php, and productsincategories.php.
Now the pages pull information from the MYSQL database whenever someone browses the sight, so to someone who is not tech savvy it seems as if we have thousands and thousands of pages. Really those thousands of pages are only four pages with different information generated each time. For example the 'mobile electronics: mp4' page's url looks like this:
http://www.whatsshopping.com/subcate...pid=46&cid=331
but really it is just subcategories_and_featured_products.php, with information called from the database.
So my issue here is creating and installing the right .htaccess file. Redoing the links on the site is not a problem because I have a constant header and footer.
Can anyone tell me if the following is correct for my .htaccess file? If not, what more do I need?
Options +FollowSymLinks
RewriteEngine on
RewriteRule subcategories_and_featured_products-pid-(.*)-cid-(.*)\.htm$ subcategories_and_featured_products.php?pid=$1&cid=$2
Options +FollowSymLinks
RewriteEngine on
RewriteRule productsincategories-ban-(.*)-cat-(.*)\.htm$ productsincategories.php?ban=$1&cat=$2
Options +FollowSymLinks
RewriteEngine on
RewriteRule products-ban-(.*)-cat-(.*)\.htm$ products.php?ban=$1&cat=$2
Options +FollowSymLinks
RewriteEngine on
RewriteRule categories_and_featured_products-pid-(.*)\.htm$ categories_and_featured_products.php?pid=$1