-1

I have to change the url through web.config from all-products?id=Mw== to all-products/Mw== for every page in site.

Please let me know.

halfer
  • 19,824
  • 17
  • 99
  • 186
joy
  • 81
  • 1
  • 8
  • You've tagged this as `.htaccess` but mention `web.config` in your question. What is the latter? What operating system are you using? – halfer Jan 05 '16 at 08:15

1 Answers1

2
Options -MultiViews
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]

RewriteRule ^all\-products/([^/]+)$ /all\-products?id=$1 [L]
Fahed Alkaabi
  • 269
  • 2
  • 10