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 8641373
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T11:30:35+00:00 2026-06-12T11:30:35+00:00

I am trying to make rewrite rule which rewrite this long url to a

  • 0

I am trying to make rewrite rule which rewrite this long url to a SEO friendly one.
However, my rule didn’t work and the destination url become a 404 page.
I would appreciate any helps. Thank you!

This is an example of original URL

http://www.mydomain.com/index.php?module=product&pId=102&id=14495&category=computer/DELL&start=0/

This is my rewrite rule

RewriteRule ^module/([^/])/pId/([^/])/id/([^/])/category/([^/])/start/([^/]*)$ /index.php?module=$1&pId=$2&id=$3&category=$4&start=$5 [L]

This is transformed URL

http://www.mydomain.com/index/module/product/pId/102/id/14495/category/computer/DELL/start/0/

  • 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-06-12T11:30:37+00:00Added an answer on June 12, 2026 at 11:30 am

    Just from a quick glance, you are matching for /start/[^/]*$. But your URL contains a trailing forward slash start/0/, which your regex excludes.

    So it might be best to either allow a spare slash with /? or rather make the last match pattern completely imperceptive with /start/(.*)$ allowing everything.

    But anyway, just removing file extensions and trading ampersands and equal signs for forward slashes doesn’t make for nicer or user-friendly URLs. The goal should be parameter consolidation for readability. Contemporary search engines don’t care about GET parameters really.

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

Sidebar

Related Questions

I am trying to make this rewrite rule to work. What i want is
I'm trying to make user friendly URL using mode rewrite. My problem is, that
So, I am trying to make: sub.example.com/page rewrite to www.example.com/sub/page I have this code
I'm trying to make a general rewrite rule to redirect all domain.com requests to
I'm really stuck on this one... Basically, I'm trying to make 2 pages always
can anybody please tell me the rewrite rule so I can make a URL
I'm trying to make a mod_rewrite which can set the language the rewrite: www.domain.com/da/page.php
Would greatly appreciate it if someone could help me make this work. I'm trying
I'm struggling with a URL Rewriting rule for SiteFinity. I am trying to make
I am trying make long screen to vertical direction. So, I need a screen

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.