PatPHP Posted February 24, 2009 Share Posted February 24, 2009 Hi Guys Is there a way in apache or php so I can handle the string after let's say. www.mydomain.com/searchme <---. Or is it just possible to handle the 404 error page error? thx Link to comment https://forums.phpfreaks.com/topic/146657-get-string-after-domaincom/ Share on other sites More sharing options...
MadTechie Posted February 24, 2009 Share Posted February 24, 2009 Yes.. via apache use .htaccess file ie Redirect /olddirectory/oldfile.html http://yoursite.com/newdirectory/newfile.html or apache & php RewriteBase / RewriteRule ^([^/]*) index.php?page=$1 [L] Link to comment https://forums.phpfreaks.com/topic/146657-get-string-after-domaincom/#findComment-769956 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.