ryanfilard Posted July 28, 2011 Share Posted July 28, 2011 I need to redirect to index.php?p=DATA from mydomain.com/DATA ? Is this possible and if so how? Quote Link to comment https://forums.phpfreaks.com/topic/243040-php-redirect/ Share on other sites More sharing options...
premiso Posted July 28, 2011 Share Posted July 28, 2011 If you are using Apache, yes with mod_rewrite. RewriteEngine On RewriteRule (.*)$ index.php?p=$1 [L] However, /DATA is very generic and I would recommend something to distinguish it by, but yea, pending any errors on my part that should work. Quote Link to comment https://forums.phpfreaks.com/topic/243040-php-redirect/#findComment-1248248 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.