keevitaja
3 months ago
637
1
Servers

How to remove first uri segment in .htaccess

Posted 3 months ago by keevitaja

EDIT: Cannot be solved with .htaccess ! REQUEST_URI is not changed by any rewrite!

Hello,

i need to write a .htaccess rewrite rules that removes the first uri segment in Laravels public/.htaccess file.

/foo/bar/baz has to become /bar/baz

I haved gooled araund with no luck. So please don't copy/paste anything from stack overflow unless you know it is working :) thank you so much!

Do you have a solution?

Please sign in or create an account to participate in this conversation.