Questions tagged [qsa]
19 questions
0
votes
1 answer
Apache mod_rewrite: path replaced with query string
I have the following rule:
RewriteRule ^/([0-9]+)/([a-z0-9_-]*)\.([a-z]+)$ index.php?id=$2&type=$3&size=$1 [R=301,L]
The problem is that when I go to the URL /0/azerty.ext in a browser the URL is displayed as /index.php?id=azerty&type=ext&size=0.…

gregseth
- 12,952
- 15
- 63
- 96
0
votes
1 answer
IIRF: exlude QSA parameter from lowercase on rewrite rule
in my config I have:
Add trailing slash to url and Lowercase
RewriteRule ^/([^.?]+[^.?/])$ /#L$1#E/ [I,R=301]
URL LowerCase
RewriteRule ^/(.*[A-Z].*)$ /#L$1#E [R=301]
rule
RewriteRule ^/category/([^\?\/]+)/((\?.+)|())$ /cat.asp?menu=3&set=$1…

Brizio
- 11
- 1
0
votes
2 answers
RewriteRule to preserve querystring
I'm trying to make a redirect rule which follows this logic:
source: www.site.com/businessinfo.asp?accommID=123
destination: www.site.com/redirect.php?type=property&id=123
My code:
RewriteRule ^/businessinfo.asp$ /redirect.php?type=property&id=$1…

user1097431
- 301
- 3
- 7
0
votes
2 answers
htaccess query string with QSA
I am trying to set common rule in htaccess for removing .php extension and links using different query strings…

rock
- 25
- 1
- 4