WordPress.org

Ready to get started?Download WordPress

Forums

Permalinks and mod_rewrite - how to make query url look like directory (2 posts)

  1. Zaphod
    Member
    Posted 3 years ago #

    Originally posted here but thought this sub-form might get me some results: http://wordpress.org/support/topic/permalinks-and-mod_rewrite-how-to-make-query-url-look-like-directory?replies=0#post-1771717

    Ok,

    So I have a car listings site setup with permalinks enabled as standard and it works fine.

    However, there's almost 70k cars on it so I created a custom search page
    where the user selects car make, model, year, price, mileage, colour etc...

    I'm wondering if there's a way to add a rule to the .htaccess file that would convert
    http://www.mysite.com/used-cars/?make=renault&model=clio etc
    to
    http://www.mysite.com/used-cars/renault/clio/

    WITHOUT breaking the normal WP permalinks. I just have the permalink structure set to /%postname%/

    Any help appreciated.

    <b>I've six posts in the previous thread on my progress</b> can that thread be moved here?

  2. arpitap
    Member
    Posted 3 years ago #

    I want similar thing :

    I am passing HotelID and suburb in url as:

    http://www.sitename.com/Hotel-Detail/?HotelID=AAA&suburb=test

    so is there any way to convert it into :

    http://www.sitename.com/Hotel-Detail/AAA/test

    if there is some way then please help me here.

    any help would be appreciated.

    Thanks in advance.
    Arpita

Topic Closed

This topic has been closed to new replies.

About this Topic