30 posts
  • Author Level 3
  • Collector Level 1
  • 3 Years of Membership
  • Exclusive Author
+1 more
azimgd
says

Hi, i have a .htaccess file to handle query strings and make friendly url’s for my site. Here is the content

      RewriteEngine On
      RewriteRule ^([a-zA-Z0-9_-]+)$ ./?q=$1
      RewriteRule ^([a-zA-Z0-9_-]+)/$ ./?q=$1

actually it works, but if i want to go here for example: “example.com/?q=blog&id=1” i can’t do this “example.com/blog/?id=1”.

Could you help me to perform this?

4335 posts
  • 6 Years of Membership
  • Affiliate Level 1
  • Author Level 3
  • Beta Tester
+11 more
Reaper-Media
says
      RewriteEngine On
      RewriteRule ^([a-zA-Z0-9_-]+)$ ./?q=$1 [QSA]
      RewriteRule ^([a-zA-Z0-9_-]+)/$ ./?q=$1 [QSA]

That should work :-)

30 posts
  • Author Level 3
  • Collector Level 1
  • 3 Years of Membership
  • Exclusive Author
+1 more
azimgd
says

      RewriteEngine On
      RewriteRule ^([a-zA-Z0-9_-]+)$ ./?q=$1 [QSA]
      RewriteRule ^([a-zA-Z0-9_-]+)/$ ./?q=$1 [QSA]
That should work :-)

Great! Thank you.

by
by
by
by
by
by