Rewrite and GET variables

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
thesilbi
Posts: 14
Joined: Mon 23. Feb 2004, 21:32

Rewrite and GET variables

Post by thesilbi »

Hi,

I have a little "bug" : Rewriting URL is activated, but I need to put a get variable in the URL .
For exemple : In my page contact.shtml (which is rewrited), I want to add "?to=2"

It doesn't work.

But if I had "index.php?id=21,5,0,0,1,0&to=2", it works !

Can you help me !

Thanks
User avatar
pSouper
Posts: 1552
Joined: Tue 11. Nov 2003, 15:45
Location: London
Contact:

Post by pSouper »

how are you adding the to=2 ?
User avatar
Oliver Georgi
Site Admin
Posts: 9935
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

You can not use additional GET values together with rewritten forms of links. Maybe this will be available later. But I have to make some enhancements to support free GET values anywhere.

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
Paradroid
Posts: 176
Joined: Fri 19. Mar 2004, 13:14
Location: Wuppertal
Contact:

Post by Paradroid »

Hi Oliver,

it would be a dream to use free GET values with rewritten urls ... :wink:

cu

Achim
ParaDroid

knquadrat edv + marketing
http://www.knquadrat.de

phpWCMS Dokumentation | Deutsch | English
User avatar
Oliver Georgi
Site Admin
Posts: 9935
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

but it makes NO sense to use rewrite with GET values like mycat.shtml?myval=test ;-)

It makes sense when this is possible only: mysite.com/myval.test/mycat.shtml

Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
Paradroid
Posts: 176
Joined: Fri 19. Mar 2004, 13:14
Location: Wuppertal
Contact:

Post by Paradroid »

Yes, that is exactly what I meant :wink:

or somethin like this :

mysite.com/dummy/value.shtml to be rewritten to mysite.com/index.php?dummy&getvalue=value

where getvalue could be a standard variable.

cu

Achim
ParaDroid

knquadrat edv + marketing
http://www.knquadrat.de

phpWCMS Dokumentation | Deutsch | English
User avatar
Oliver Georgi
Site Admin
Posts: 9935
Joined: Fri 3. Oct 2003, 22:22
Location: Dessau-Roßlau
Contact:

Post by Oliver Georgi »

default var for GET makes no sense - everybody would have additional values. And remember - the link is still working - also without rewrite.

It's not neccessary to have everything rewritten.


Oliver
Oliver Georgi | phpwcms Developer | GitHub | LinkedIn
User avatar
Paradroid
Posts: 176
Joined: Fri 19. Mar 2004, 13:14
Location: Wuppertal
Contact:

Post by Paradroid »

Yes, you are perfectly right... (it's monday morning ...) :?

cu

Achim
ParaDroid

knquadrat edv + marketing
http://www.knquadrat.de

phpWCMS Dokumentation | Deutsch | English
Post Reply