Welcome! Log In Create A New Profile

Advanced

Re: Redirect specific query to a page

OndanomalA
January 20, 2013 07:18AM
Yeah! Using only set and if worked! :D
Thanks!


2013/1/20 OndanomalA <ondanomala_albertelli@yahoo.it>

> I tried it but I get the error "nginx: [emerg] "set" directive is not
> allowed here" (as you said I put set and map at http level and rewrite at
> server level).
>
>
> 2013/1/19 OndanomalA <ondanomala_albertelli@yahoo.it>
>
>> Thanks Antonio for the reply! :)
>>
>> The fact is that I don't care so much about these redirects, I just want
>> 4/5 pages of the old permalink structure to be correctly redirected to the
>> new pages. This 4 page are (for example):
>> /?option=com_content&view=category&id=40&Itemid=106
>> /?option=com_content&view=article&id=164&Itemid=139
>> /?option=com_content&view=article&id=288&Itemid=90
>> /?option=com_content&view=category&layout=blog&id=1&Itemid=50
>>
>> All should be redirected to 4 different pages. Is there a way - without
>> looking at parameters (I just need to redirect THOSE 4/5 pages, not the
>> whole perm structure) - to tell to singly redirect each to the
>> corresponding new page (one line rewrite for each)?
>>
>> For example:
>> /?option=com_content&view=category&id=40&Itemid=106 -> /blahblah/page1
>> /?option=com_content&view=article&id=164&Itemid=139 -> /blahblah/page2
>>
>>
>>
>> 2013/1/19 OndanomalA <ondanomala_albertelli@yahoo.it>
>>
>>> I moved my website from Joomla to WordPress.. I'd like to redirect
>>> www.website.com/?option=com_content&view=article&id=164&Itemid=139 to
>>> www.website.com/listituto/contatti/ (so, same domain).
>>>
>>> I tried with this line (both within the / location and outside it):
>>>
>>> rewrite /?option=com_content&view=article&id=164&Itemid=139
>>> /listituto/contatti/ permanent;
>>>
>>> ... with no luck. What am I doing wrong?
>>>
>>
>>
>
_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

Redirect specific query to a page

OndanomalA January 18, 2013 08:22PM

Re: Redirect specific query to a page

António P. P. Almeida January 18, 2013 08:54PM

Re: Redirect specific query to a page

OndanomalA January 19, 2013 09:46AM

Re: Redirect specific query to a page

António P. P. Almeida January 19, 2013 01:00PM

Re: Redirect specific query to a page

OndanomalA January 19, 2013 08:30PM

Re: Redirect specific query to a page

António P. P. Almeida January 19, 2013 09:44PM

Re: Redirect specific query to a page

Vadim Lazovskiy January 20, 2013 08:02AM

Rewrite rules with NGinx

miky January 20, 2013 10:24AM

Re: Rewrite rules with NGinx

Francis Daly January 20, 2013 10:52AM

Re: Rewrite rules with NGinx

miky January 20, 2013 11:36AM

Re: Rewrite rules with NGinx

Francis Daly January 20, 2013 12:02PM

Re: Rewrite rules with NGinx

António P. P. Almeida January 20, 2013 12:24PM

Re: Redirect specific query to a page

OndanomalA January 20, 2013 07:18AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 84
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready