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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T16:19:53+00:00 2026-06-16T16:19:53+00:00

At the moment I use the following code to convert dynamic URLs to static

  • 0

At the moment I use the following code to convert dynamic URLs to static in my .htaccess file:

RewriteRule ^([a-z0-9_\-]+)$ /index.php?page=$1 [L,NC]

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\?page=([^&]+)\ HTTP/
RewriteRule ^index\.php$ http://www.mywebsite.com/%1? [R=301,L]

What I’d like to know is if it’s possible to change this rule so that pages can be access via www.mywebsite.com/news but also additional $_GET information can appended like so: www.mywebsite.com/news?id=1

  • 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-16T16:19:55+00:00Added an answer on June 16, 2026 at 4:19 pm

    You want to take a look at the QSA flag, which will append query strings after you constructed one:

    RewriteRule ^([a-z0-9_\-]+)$ /index.php?page=$1 [L,NC,QSA]
    

    This makes it so a request for http://www.mywebsite.com/news?id=1 gets internally rewritten to: /index.php?page=news&id=1

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

Sidebar

Related Questions

I use the following code at the moment to assert on a boolean value,
Can I use the following jQuery code to perform file upload using POST method
I use the following code to check if a string is the session username
I am trying to use following code to perform few animations -(void) performSlidingfromX:(int) xx
At the moment I am using the following code: public void init() { question
i have the following code which walks through an Excel file and this works
At the moment, I have the following code: Public tmr() As DispatcherTimer Public Sub
I have the following code in a JSP page: <c:forEach var=widget items=${widgets}> <p><h2>Widget</h2></p> <p>IDType:
I'm trying to use the following code so when a person clicks on a
I have the following code at the moment: tw_jar = cookielib.CookieJar() tw_jar.set_cookie(c1) tw_jar.set_cookie(c2) o

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.