-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,471
  • 17
  • 87
  • 173
joy
  • 81
  • 7
  • 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
  • 279
  • 1
  • 10