Rename index.php with . htaccess

Asked

Viewed 206 times

1

Guys, I wanted to access index.php from any parameter in the url, from . htaccess, like this:

site.com/sistema1
site.com/sistema2
...

and automatically go to

site.com/index.php

to then treat certain functions from that url. What’s the best way to do this?

  • 1

    RewriteRule ^.*$ index.php

  • Thanks, I’ll try here.. I was already considering creating several identical folders

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.