Forums

.htaccess And Custom Program (1 post)

  1. pyrogod117
    Member
    Posted 1 year ago #

    OK, I have searched the forums here but I can't seem to find something that matches what I'm looking to do. Basically I used WordPress to create a website, but I also had to build a custom inventory management system in PHP. They integrate fine, but my problem is the URLs. I want to make them a certain way and I really can't figure it out, no matter what I tried putting in the .htaccess file.

    Here are some examples of what I'm looking to do:
    http://www.cyclehousenj.com/ (this is the main website, also lists everything in the inventory on this main page). The inventory system is coded in PHP, and has its own paging system. What I'm looking to do is make the URLs like this:

    http://www.cyclehousenj.com/page-2/ (if I'm browsing from the main page viewing all categories)
    http://www.cyclehousenj.com/used-motorcycles-nj/page-2/ (used motorcycles nj is a page created in WP and it has a custom template that includes the proper page for the gallery - used motorcycles is a category of the inventory system)

    Basically the format will be:

    http://www.cyclehousenj.com/%category%/page-(page number)/

    By %category% I mean category in the inventory system, which is also a page in WP.

    My current .htaccess file is this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    The last 2 lines are what I tried to put together from what I found on the internet, but it doesn't work and I really don't understand .htaccess.

    I would really appreciate it if anyone can help me out. Hopefully I have made this clear enough.

    Thanks,
    Kevin

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.