30 posts
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
+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
  • Has been part of the Envato Community for over 5 years
  • Has referred 1+ members
  • Has sold $1,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+11 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
  • Has sold $1,000+ on Envato Market
  • Has collected 1+ items on Envato Market
  • Has been part of the Envato Community for over 2 years
  • Sells items exclusively on Envato Market
+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