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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T09:25:59+00:00 2026-05-13T09:25:59+00:00

I need to rewrite: index.php?node=[something] to /node/[something] (the node part will be static text

  • 0

I need to rewrite:

index.php?node=[something]

to

/node/[something]

(the “node” part will be static text and it’s not important)

i’ve tried:

RewriteRule ^index\.php?node=(.*)$ /node/$1 [L,R=301] 

(again the rewritten “node” part will be static text and it’s not important)

and a lot of other variations without success…

Thanks!

  • 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-13T09:26:00+00:00Added an answer on May 13, 2026 at 9:26 am

    You need to use a RewriteCond to examine the query as it’s not part of the URL path:

    RewriteCond %{QUERY_STRING} ^(([^&]*&+)*)node=([^&]*)(&.*)?
    RewriteRule ^index\.php$ /node/%3?%1%4 [L,R=301]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need a rewrite rule for this url http://localhost/~user/frame/lib/index.php?/controller/method/12/22/ How can i rewrite it
I need help to rewrite URL with htaccess, now my url is http://site.com/index.php?user=ln12666279n i
I have the following .htaccess rule: RewriteEngine on RewriteRule ^(.*) http://www.server2.com/index.php?action=$1 I need to
Possible Duplicate: Rewrite all queries to not need the .php extension using a mod_rewrite
I need to rewrite an URL with .htaccess. (Actual url) Before: yyy.com/folder/index.php?lang=en (Their url)
I have this addrress http://mysite.com/index.php?cat=7 I write this mod rewrite RewriteRule ^category/(\d+) index.php?cat=$1 this
I have the following Rewrite Rule: RewriteCond ${rewrite_map:$1|NOT_FOUND} !NOT_FOUND RewriteRule ^([a-zA-Z0-9_-]+)/?$ index.php?shop_id=${rewrite_map:$1} [NC,L,QSA] So
i need some help in this htaccess code RewriteRule ^([0-9a-z\-\_]+)?$ /index.php?url=$1 [L,QSA,NC] This code
I need to rewrite an image path on the following URLs: domain.com/system/index domain.com/system/view/12345 domain.com/system/search/term1:/term2:data/term3:/term4:data/term5
I need rewrite this url http://adresa.com/article.php?act=view&id=1113 to http://adresa.com/view/1113 I make it with mod_rewrite in

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.