Rewrite ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

I want url:s like site.com/page/subpage/some=data and I also need urls like site.com/foo/bar/?some=data to function on my site. The first kind works fine. But I can't get the question mark-kind to work.

This works fine for case 1:
RewriteRule ^([a-z]*[/][a-z]*)[/]?([a-z0-9=&])$ /main_script.php?=the_page=$1&$2

I added a [\?]?, case 1 still works but case 2 does not (the page $1 is passed fine, but the rest of the data $2 is not passed at all): RewriteRule ^([a-z]*[/][a-z]*)[/]?[\?]?([a-z0-9=&])$ /main_script.php?=the_page=$1&$2

Any ideas?

Best Regards Emil

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux