473,406 Members | 2,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ModRewrite; Sortable list with nice-looking urls

I'm using mod_rewrtie to have nice look urls.
One of my rules are:
RewriteRule ^category/([^/\.]+)/?$ /tidskrifter_lista.php?category=$1

..which turns www/category/misc into www/tidskrifter_lista.php?category=misc. This page shows all items in that category in a list. Since I want the user to be able to sort the list by different columns I need to be able to add parameters to the url.

usually I would do like this: /tidskrifter_lista.php?category=$1&sortby=column.

But this is not working with my nice-looking urls; www/category/misc?sortby=column.... only the category parameter is passed.

What can I do to pass the sorting parameters for this list with the specified url?
Dec 4 '08 #1
1 2229
I've found the solution...just add &%{QUERY_STRING} at the end of the rewrtie rule
Dec 7 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Alexander Widera | last post by:
hi, perhaps you all know ModRewrite for the apache webserver... Is there an equivalent for asp.net / iis? I don't want to buy a component (.dll)... I want to program it myself. Some time ago, I...
2
by: arjenmeijer | last post by:
I am using the Drag & Drop Sortable Lists with javaScript and CSS from http://tool-man.org/examples/sorting.html. It works beautifully in a single page, see http://www.molca.com/kkoke.html. ...
1
by: Henri Schomäcker | last post by:
Hi folks, what I need is a kind of 2D-Array which should, in the end, represent a typical html-table and which should be sortable by column. I thought of an implementation, where an vector...
1
by: mark Bannister | last post by:
Newbie here. Site is on shared server Apache, PHP 4.x I am using modrewrite currently for some other things but I was wondering about includes in php files. They don't seem to pass through...
7
by: shellon | last post by:
Hi all: I want to convert the float number to sortable integer, like the function float2rawInt() in java, but I don't know the internal expression of float, appreciate your help!
1
by: since | last post by:
I figured I would post my solution to the following. Resizable column tables. Search and replace values in a table. (IE only) Scrollable tables. Sortable tables. It is based on a lot...
0
dlite922
by: dlite922 | last post by:
I need help with redirecting virtualhosts to use HTTPS (SSL) when they type in HTTP Must work in IE. Right now there is two virtual host blocks for every subdomain. I want to combine the...
4
by: Jeff | last post by:
Somewhere I've seen a list that is drag and drop sortable, where you can "grab" a list item and move it up or down the list. Can someone summarize how this is done. I really don't want to hack...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.