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? 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. Link to comment https://forums.phpfreaks.com/topic/243040-php-redirect/#findComment-1248248 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.