Damaged htaccess File With Slug In Link
I have caused a major problem with my site. I have tried to add a slug to the link.
So instead of..
.com/product/12345
I now have...
.com/product/12345/large-red-widget.
However the changes I have made to my htaccess file have now affected all the other links on my site which run from a query. Can anyone advise how to amend the htacess file just so it impacts on products.
Options -Indexes Options -MultiViews Options +FollowSymLinks # Prevent viewing of htaccess file <Files ~ "^\.ht"> order allow,deny deny from all satisfy all </Files> # Disable directory listing from this point Options -Indexes # Error Pages ErrorDocument 404 /404-error.php # Rewrite Rules <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^products/product/([0-9]+)/(.*)$ products/product.php?product_id=$1 [QSA,L] RewriteRule ^articles/article/([0-9]+)/(.*)$ articles/article.php?ID=$1 [QSA,L] RewriteRule ^articles/articlesfiltered/([A-Za-z]+)/(.*)$ articles/articlesfiltered.php?articlecategory=$1 [QSA,L] RewriteRule ^plusstyle/plusstyle/([0-9]+)/(.*)$ plusstyle/plusstyle.php?ID=$1 [QSA,L] RewriteRule ^plusstyle/plusstylesfiltered/([A-Za-z]+)/(.*)$ plusstyle/plusstylesfiltered.php?articlecategory=$1 [QSA,L] RewriteRule ^([a-z]+)/([a-z\-]+)$ /$1/$2.php [QSA,L] </IfModule
Robin
Robin