Redirects for URLs with Greek characters
September 28, 2015 04:27PM
Hello,

I am moving a few webpages to a new location and I would like to set up 301 redirects from the old to the new location. The thing is that my URLs contain Greek characters and as far as I know, this type of redirects don't work on nginx.

So, I would like to ask you please if there is any way to set up redirect rules. My URLs are similar to this: https://el.wikipedia.org/wiki/%CE%99%CF%83%CF%84%CF%8C%CF%84%CE%BF%CF%80%CE%BF%CF%82

Thanks
Re: Redirects for URLs with Greek characters
September 29, 2015 11:50AM
Nobody?
Re: Redirects for URLs with Greek characters
September 29, 2015 02:14PM
Have you tried it? like a normal standard redirect?

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Redirects for URLs with Greek characters
September 29, 2015 04:50PM
What do you mean?

I have tried this way only

location /wiki/%CE%99%CF%83%CF%84%CF%8C%CF%84%CE%BF%CF%80%CE%BF%CF%82 { return 301 https://el.wikipedia.org/wiki/%CE%99%CF%83%CF%84%CF%8C%CF%84%CE%BF%CF%80%CE%BF%CF%82new; }
Re: Redirects for URLs with Greek characters
September 29, 2015 06:11PM
stevez7 Wrote:
-------------------------------------------------------
> What do you mean?
>
> I have tried this way only
>
> location /wiki/%CE%99%CF%83%CF%84%CF%8C%CF%84%CE%BF%CF%80%CE%BF%CF%82
> { return 301
> https://el.wikipedia.org/wiki/%CE%99%CF%83%CF%84%CF%8C%CF%84%CE%BF%CF%
> 80%CE%BF%CF%82new; }

location /wiki {
return 301 https://el.wikipedia.org/wiki$request_uri;
}

---
nginx for Windows http://nginx-win.ecsds.eu/
Re: Redirects for URLs with Greek characters
September 30, 2015 01:03AM
itpp2012 Wrote:
-------------------------------------------------------
> location /wiki {
> return 301 https://el.wikipedia.org/wiki$request_uri;
> }

No I did not tried this because I do not want to redirect EVERYTHING from OLDDIRECTORY to the NEWDIRECTORY$request_uri; but a SPECIFIC URL to a New URL.

Also, "return 301" part works fine. The "location" part is that not works with URLs in Greek.
Re: Redirects for URLs with Greek characters
September 30, 2015 03:18AM
https://www.ruby-forum.com/topic/212442

---
nginx for Windows http://nginx-win.ecsds.eu/
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 133
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready