simple url rewriting

Hello experts;
I want to use this url rewriting (.htaccess)

so it points to

Any clues ?

I use linux / apache / php
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Lukasz ChmielewskiCommented:
Try this:

RewriteRule[^/]*)$$1 [L]

Open in new window

yarekGmailAuthor Commented:
does not seem to work.
Besides I just realized : it will work badly with files like /images /scripts /admin etc..
Do you have a suggestion to simplify this kind of url ?

What are you using the parameter for; a re-direct or query?

IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

yarekGmailAuthor Commented:
for a SQL quesry
Okay you currently hit where it by default goes to

so why not do a php re-direct in index.php like this

header("Status: 301 Moved Permanently");

header("Location:". $_SERVER['QUERY_STRING']);

Open in new window

yarekGmailAuthor Commented:
I think I expressed myself badly   goes to goes to
except for

Is it something that can be done with .htaccess ?

If the rewrite that Roads_Roads does not do it than I have no idea.

What I gave you should work, but you have to set up the index.php for each of their directories.

You are doing a major structural change in the file system, so there is some work involved.

I wish I had more for you.  There may be some other rewrite rule that could be used but I don't use rewrite enough to be definitive about whether it is possible.



Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.