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 Quote 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] Quote Link to comment https://forums.phpfreaks.com/topic/146657-get-string-after-domaincom/#findComment-769956 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.