Welcome! Log In Create A New Profile

Advanced

Can't solve this redirect :(

Posted by JoakimR 
Can't solve this redirect :(
February 12, 2018 12:19PM
Hi, I can't solve how this .htacces rule should be rewritten :( could someone please try to help me

in .htaccess
RewriteRule ^filters$ index.php?controller=filters [L,QSA]

Have tried the following rwdirects but all gives me the "The page isn’t redirecting properly"

rewrite ^filters$ /index.php?controller=filters last;
rewrite ^/filters/$ /index.php?controller=filters last;
rewrite ^/filters$ /index.php?controller=filters last;

Non of the above works, but checked it on apache, and there the rule works perfectly
Re: Can't solve this redirect :(
March 02, 2018 03:23PM
Nowbody who have any suggestion for a solution? or could helo me make this rewrite
Re: Can't solve this redirect :(
March 03, 2018 05:45PM
Hi JoakimR;

This will probably work.

location /filters {
rewrite .* /index.php?controller=filters permanent;
}

Permanent means, address that you try to access is moved to new address.QSA process is automatically doing in Nginx rewrite condition.Hence, you don't have to do an extra thing.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 166
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready