30 posts
  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
  • Exclusive Author
  • Poland
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
  • Beta Tester
  • Bought between 10 and 49 items
  • Community Moderator
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Grew a moustache for the Envato Movember competition
+6 more
Reaper-Media Volunteer moderator says
      RewriteEngine On
      RewriteRule ^([a-zA-Z0-9_-]+)$ ./?q=$1 [QSA]
      RewriteRule ^([a-zA-Z0-9_-]+)/$ ./?q=$1 [QSA]

That should work :-)

30 posts
  • Sold between 1 000 and 5 000 dollars
  • Has been a member for 2-3 years
  • Bought between 1 and 9 items
  • Exclusive Author
  • Poland
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