Welcome! Log In Create A New Profile

Advanced

Re: Rewrite with apostrophe causes 404

August 22, 2010 08:25AM
I solved this myself, forgot to put the solution here, the following removes /' and replaces it with nothing so urls work in all browsers.

if ($uri ~ "^(.*)/'(.*)$"){
set $rule_0 1$rule_0;
set $bref_1 $1;
set $bref_2 $2;
}
if ($rule_0 = "1"){
rewrite /. /$bref_1$bref_2 permanent;
break;
}


Maybe this will help someone too.

http://www.somerorbay.com
Subject Author Posted

Rewrite with apostrophe causes 404

st1905 May 23, 2010 04:47PM

Re: Rewrite with apostrophe causes 404

st1905 May 23, 2010 05:38PM

Re: Rewrite with apostrophe causes 404

st1905 August 22, 2010 08:25AM

Re: Rewrite with apostrophe causes 404

Igor Sysoev August 22, 2010 02:10PM

Re: Rewrite with apostrophe causes 404

st1905 August 24, 2010 10:45AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 242
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