Page 1 of 1

Why can't I put something on the end of this URL?

Posted: Fri Nov 14, 2014 6:22 am
by simonmlewis
I am using this in HTACCESS:

Code: Select all

RewriteRule ^a_alternatives/page/([0-9]+) /index.php?page=a_alternatives&pagenum=$1 [L,QSA]
To take this:
[text]/a_alternatives/page/6&id=2108&u=y&altid=KINGPIN[/text]
and action on the variables.

Problem is, it won't do anything at all. The page turns over, and stays on the page number, but doesn't do anything.
The script works on page one, where there is no /page/ in the URL.

Re: Why can't I put something on the end of this URL?

Posted: Fri Nov 14, 2014 8:01 am
by Celauran

Code: Select all

/a_alternatives/page/6?id=2108&u=y&altid=KINGPIN
Change that first ampersand to a question mark and you're golden.

Re: Why can't I put something on the end of this URL?

Posted: Fri Nov 14, 2014 8:44 am
by simonmlewis
Will try that again, as I did try it before and it didn't work at all.
That said, I have since tried it without the shorturls (as it's not for consumers) and that worked.