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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:07:47+00:00 2026-05-29T04:07:47+00:00

If possible how do I do this in mod_rewrite… http://site.com/var=123 to http://site.com/page.php?x=123

  • 0

If possible how do I do this in mod_rewrite…

http://site.com/var=123

to

http://site.com/page.php?x=123
  • 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-29T04:07:48+00:00Added an answer on May 29, 2026 at 4:07 am

    Try putting this in the .htaccess file in your document root

    RewriteEngine on
    RewriteRule ^var=(.+)$ /page.php?x=$1 [L]
    

    If you want query strings to get passed along, add a QSA to the brackets (so it looks like [L,QSA]. That’ll make is to requests for http://site.com/var=123?something=else will get rewritten to /page.php?x=123&something=else

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

Sidebar

Related Questions

Is it possible to re-write (Apache Mod-Rewrite) a URL from this: http://www.example.com/view.php?t=h5k6 to this
If I am mod_rewriting a URL from: http://www.mysite.com/blog/this-is-my-title/1/ to http://www.mysite.com/blog.php?title=this-is-my-title&id=1 ...is it possible then
I have a Wordpress page that accepts a query string argument: http://x.com/page-name/?parameter=value This works
Is this possible? I've followed the instructions from here ( http://www.jetbrains.net/confluence/display/TCD4/Setting+up+an+External+Database#SettingupanExternalDatabase-MicrosoftSQLServer2005 ) but I
I was wondering if this was possible in mod_rewrite, and if anyone knows the
Ok so I am trying to rewrite http://example.com/post.php?cat1=aCatagory&title=aTitle to http://example.com/aCatagory/aTitle The problem is I
Possible Duplicate: Rewrite all queries to not need the .php extension using a mod_rewrite
I've been asked to develop a mod_rewrite to change http://www.example.com/health-and-fitness-tips/999/ into http://www.example.com/health-and-fitness-tips/how-do-I-lose-10kg-in-12-weeks/ where 999
I'm not sure if this is possible but I want to use mod_rewrite like
Is this possible? I want to have the To:, Body, and an Attachment all

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.