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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:18:50+00:00 2026-06-09T04:18:50+00:00

(I might be an idiot, it appears that .htaccess isn’t enabled by default in

  • 0

(I might be an idiot, it appears that .htaccess isn’t enabled by default in Apache on OSX.)

I know there are a lot of mod_rewrite questions out there, but I just can’t get mine right and nothing else seems to quite cover it.

All I want to do is redirect

www.url.com/something

or

www.url.com/something/anything/more

to

www.url.com/index.php?values=something

or

www.url.com/index.php?values=something/anything/more

Nothing fancier than that (I’ll put in something about ignoring gif/jpg/png, adding www. etc later later) – all processing of something/anything/more will be done in PHP.

I just can’t get it right though. Any hints/resources or anyone who’s just managed to do this? It’s more frustrating knowing that I once got it absolutely perfect but lost that code years ago.

  • 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-09T04:18:53+00:00Added an answer on June 9, 2026 at 4:18 am

    This is pretty straightforward, at least in what you are asking But basically you need to make index.php passthrough (so you don’t rewrite index.php to index.php), then the main rewrite.

    RewriteEngine On
    RewriteRule index.php - [L]
    
    # your conditions here
    RewriteRule ^/?(.*)$ /index.php?values=$1 [L]
    

    Add whatever conditions you want to exclude rewrite at the # your conditions here spot

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

Sidebar

Related Questions

i might be doing some idiot mistake, but i could not figure that out.
I'm working on an app where there are two different NSManagedObject types that might
Might be my question sounds more naive. But I wanted to know if it
Might be a bit of noob question but it's something that's been getting me
It might look like a stupid question, but I recently realized that .NET implementation
I know it might be silly, I have just started with WPF. I want
I have a model that is stateful. In each state there are a selection
I know that somewhere in the history of the internet this must have been
Are there open source C++ libraries that are similar or equivalent to the excellent
Might be a stupid question, but I don't know the logic behind. On a

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.