Re: Trailing Slash redirection poblem

2016-05-04 Thread Muhammad Yousuf Khan
Thanks for the info. will check on that. On Wed, May 4, 2016 at 12:22 AM, Francis Daly wrote: > On Mon, May 02, 2016 at 05:48:12PM +0500, Muhammad Yousuf Khan wrote: > > Hi there, > > > Thanks for the reply, actually we have 5 categories. and then we have > > hundred plus

Re: Trailing Slash redirection poblem

2016-05-03 Thread Francis Daly
On Mon, May 02, 2016 at 05:48:12PM +0500, Muhammad Yousuf Khan wrote: Hi there, > Thanks for the reply, actually we have 5 categories. and then we have > hundred plus post in each category. now when user click on our category. he > sees intro about the category and then list of all posts. > when

Re: Trailing Slash redirection poblem

2016-05-02 Thread Muhammad Yousuf Khan
first of all my apologies if i question something inapplicable , this could be the result of my less knowledge in nginx. i hope you guys don't mind. Thanks for the reply, actually we have 5 categories. and then we have hundred plus post in each category. now when user click on our category. he

Re: Trailing Slash redirection poblem

2016-05-02 Thread Francis Daly
On Sun, May 01, 2016 at 01:16:51PM +0500, Muhammad Yousuf Khan wrote: Hi there, > >>The configuration you have shown says "if the request is for /live/, > >>ask the browser to instead request /live". > > >>The configuration you have not shown says "if the request is for /live, > >>ask the

Re: Trailing Slash redirection poblem

2016-05-01 Thread B.R.
So these opposite redirection rules are fighting each other and are the source of your problem, which Francis helped you to alleviate. Sit back, grab an erasable whiteboard, scratch your head and think about your website's design: both rules probably have their use in their own corner, but you

Re: Trailing Slash redirection poblem

2016-05-01 Thread Muhammad Yousuf Khan
just want to make it more clear that when i comment out this line #try_files $uri $uri.html $uri/ /index.php?q=$request_uri; error become 404 from redirection loop error. On Sun, May 1, 2016 at 1:16 PM, Muhammad Yousuf Khan wrote: > > >>The configuration you have shown says

Re: Trailing Slash redirection poblem

2016-04-30 Thread Francis Daly
On Sat, Apr 30, 2016 at 12:47:20PM +0500, Muhammad Yousuf Khan wrote: Hi there, > I have been trying to remove the trailing slash with this redirection rule. > rewrite ^/(.*)/$ /$1 permanent; > > however it is creating a loop. > > curl -I https://.com/live/ > > HTTP/1.1 301 Moved

Trailing Slash redirection poblem

2016-04-30 Thread Muhammad Yousuf Khan
Dear All, Need some help to remove trailing Slash. I have been trying to remove the trailing slash with this redirection rule. rewrite ^/(.*)/$ /$1 permanent; however it is creating a loop. curl -I https://.com/live/ HTTP/1.1 301 Moved Permanently Server: nginx/1.6.2 Date: Sat, 30 Apr 2016