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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T20:25:45+00:00 2026-06-04T20:25:45+00:00

In a website I found, they use friendly URLs like this: Real URL: example.com/index.php?mode=product

  • 0

In a website I found, they use friendly URLs like this:

Real URL:

example.com/index.php?mode=product

FRIENDLY URL

example.com/view/product.html

In the friendly URL, there is a feature to get a variable with $_GET function. So if the URL looks like this:

FRIENDLY URL 2

example.com/view/product.html?id=10&lang=en&cur=1

This is similar to the friendly URL but allows me to easily access variable parameters.

Can someone help me write an .htaccess rewrite rule like this?

  • 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-04T20:25:47+00:00Added an answer on June 4, 2026 at 8:25 pm

    The [QSA] directive in mod_rewrite is your friend here. It will append all the other query string parameters onto the end of the rewritten url:

    Options +FollowSymlinks
    RewriteEngine On
    RewriteRule ^view/(.*).html /index.php?mode=$1 [QSA]
    

    That is untested, but just a quick answer that should get you going.

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

Sidebar

Related Questions

I found this on a website, css_loader.php <?php // First of all send css
i need to use geolocation in my website for the banner. I found this
Whilst debugging a website I found this tag below the body of the page
I've found different help through this website but still can't seem to convert a
I found sometimes browser can't get cookies from my website, so I use curl
I use a webfont to display some icons on a website. This is fantastic
I'm getting started with jquery and following the tutorial on the official website found
While website loading speed testing I found that website is sometimes loading very quickly
By looking into the Open JPA website i've found that i can log the
A friend of mine asked to create a static website and I found that

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.