Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7614745
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T02:28:54+00:00 2026-05-31T02:28:54+00:00

I wanna make this rather simple to ask so I can hope for a

  • 0

I wanna make this rather simple to ask so I can hope for a simple response. I’m somewhat new to mod rewriting (most I’ve done is a small cms using index.php?page=x and mod rewriting to that name). I have a shopping cart created by foreign people for my company before I started working here with little to no documentation and they are asking me to make the cart search engine friendly. I won’t get too dirty with the details, just need to ask a question.

I have, say, results.php?name=friendly-url. I’ve edited my .htaccess so I can access these pages with a friendly url. It works perfectly.

RewriteRule ^([A-Za-z0-9-]+).html$ results.php?name=1

Now the cart has it written to paginate kinda awkwardly only because the $_GET variable is stupidly named. I’m trying to find out, without having to get really dirty and having to re-name files or re-route directories in the code, to make a simple friendly pagination.

The end result I’m looking for is something like starter-kits-01.html and starter-kits-02.html and so on. This is the mod rewrite I’ve been trying just to get something to work.

RewriteRule ^[A-Za-z-0-9-]+).html?p=([0-9]+)$ results.php?name=$1&pageNum_rsCWResults=$2

That, I believed, should allow me to render starter-kits.html?p=2. I’m getting no mod rewrite error, but it’s messing up my $_GET variables. I can’t do, say, /starter-kits/2/ without getting dirty and having to go through this messy code the foreign people made and change 500 lines of directories.

I’ve spent about 30 minutes on it, and I have 3 other projects going on today, so I’m going to move onto those while I wait for somebody a little more experienced with mod rewriting to give me a helping hand.

Much appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T02:28:56+00:00Added an answer on May 31, 2026 at 2:28 am

    Just use:

    RewriteRule ^([A-Za-z0-9-]+).html$ results.php?name=1 [QSA]
    

    The QSA part tells it to forward any GET parameters on to the rewrite.

    http://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_qsa

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please don't judge me, i'm extremely new on android developing... I wanna make an
Hi I wanna make a website preferably using asp.net 3.5 in c#. In this
Q: My question consists of three parts: 1-i wanna to ask how to make
Let say i wanna make a new place in my app (based-on google map
i wanna make an array of UIImage in like this view http://i42.tinypic.com/25z1na0.png which i
How should I go about parsing a url in php? I wanna make it
i've built my first wpf application, nothing fancy, but i wanna make it look
I will make upload my application today to my homepage and wanna to have
Hi guys i am going to make a android game. i wanna know that
I wanna verify a digitally signed xml against its schema definition while this schema

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.