I need to put files in a new folder like this: domain.com/newsite/newpanel/events.php
There are other files in the server like:
- domain.com/events.php,
- domain.com/oldsite/events.php etc.
Requirement 1: I cannot redirect everything (because old implementations exist) with generic rules, so I only want to redirect specific urls. domain.com/events should now skip the old files and go to domain.com/newsite/newpanel/events.php
Requirement 2: I tried something like this
RewriteRule ^events /newsite/newpanel/events/$1 [P]
but the url on the url bar will change. Is it possible for it to display domain.com/events?
thank you all!