I have a url like this.
/domains/details.php (NOTE: domains is dynamic and can be anything)
How do I remove the domains part from the URL using .htaccess so the actual lookup is:
/details.php
OR it’ll be cool if I can get domains into the URL.
/details.php?page=domains
Thanks!
Scott
Leave off the
[R=301]if you want an internal redirect rather than an actual HTTP redirect.To preserve existing query parameters you can change the rule to this: