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
- Author was Featured
- 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
- Has been a member for 4-5 years
Reaper-Media
moderator
says
RewriteEngine On
RewriteRule ^([a-zA-Z0-9_-]+)$ ./?q=$1 [QSA]
RewriteRule ^([a-zA-Z0-9_-]+)/$ ./?q=$1 [QSA]
That should work 
azimgd
says
Reaper-Media said
RewriteEngine On RewriteRule ^([a-zA-Z0-9_-]+)$ ./?q=$1 [QSA] RewriteRule ^([a-zA-Z0-9_-]+)/$ ./?q=$1 [QSA]That should work![]()
Great! Thank you.
