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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:43:56+00:00 2026-06-17T20:43:56+00:00

first if someone founds a better title…go for it! The question is, i’m trying

  • 0

first if someone founds a better title…go for it!
The question is, i’m trying to setup mod rewrite so that all these are translated to

http:// mysite/phpnuget/nuget/metadata.php

preserving the query string parameters

  • http:// mysite/phpnuget/nuget/$metadata
  • http:// mysite/phpnuget/nuget/$metadata/wetheaverdirstructure
  • http:// mysite/phpnuget/nuget/$metadata/
  • http:// mysite/phpnuget/nuget/$metadata?wetheaver=parameter
  • http:// mysite/phpnuget/nuget/$metadata/wetheaverdirstructure?wetheaver=parameter
  • http:// mysite/phpnuget/nuget/$metadata/?wetheaver=parameter

I doged for hours through the internet with various tests but not one of the tenth i tryed worked…
(the space before mysite is only to allow posting on Stackoverflow… think it does not exists!)
Can someone give me some hint?
Thank you,
Enrico

(Changed the title)

  • 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-17T20:43:57+00:00Added an answer on June 17, 2026 at 8:43 pm

    You may try this:

    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI}  !metadata\.php          [NC]
    RewriteCond %{REQUEST_URI}  ^/phpnuget/nuget/\$metadata  [NC] 
    RewriteRule  .*     phpnuget/nuget/metadata.php   [L]
    

    It will map silently any URL like this one:

    http://mysite.com/phpnuget/nuget/$metadata/anything

    To:

    http://mysite.com/phpnuget/nuget/metadata.php removing the last anything segment.

    If the incoming URL holds a query, it will be appended to metadata.php automatically in query format. i.e. ?this=is&a=query

    Just in case, there is NO need for the QSA flag.

    To make the substitution URL permanent and visible, replace the last [L] with [L,R=301]

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

Sidebar

Related Questions

First of all, if someone has a different, perhaps shorter (or better), solution to
Can someone explain the difference between these two, the first one is taken from
First, thank you all for your help. I'm trying to locate something similar to
First, could someone with 1500+ reputation please create a tag for ContinueWith (and tag
Does someone know why i never get the first value of my array? it
Can someone please explain the following How was the first JDK release unit Tested?
Can someone explain to me why the following works for the first test but
first time post here. I was hoping someone could help me make custom SPARQL
Could someone explain this (strange) behavior? Why is the length in the first example
I am writing my first FireFox extension and I have some questions. Maybe someone

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.