ricmetal Posted August 10, 2011 Share Posted August 10, 2011 hi guys i just want to remove a folder from an url on the url window in the browser url bar i don't want to redirect anything, just make website.com/folder/file.php appear as website.com/file.php but with no redirections. i'm new to mod_rewrite and have been reading up a bit. my question is do i need to do a redirection or a simple replace will suffice? Quote Link to comment https://forums.phpfreaks.com/topic/244379-removing-folder-from-url/ Share on other sites More sharing options...
trq Posted August 10, 2011 Share Posted August 10, 2011 You can do this with a rewrite not a redirect. Quote Link to comment https://forums.phpfreaks.com/topic/244379-removing-folder-from-url/#findComment-1255158 Share on other sites More sharing options...
ricmetal Posted August 10, 2011 Author Share Posted August 10, 2011 ok, thanks Quote Link to comment https://forums.phpfreaks.com/topic/244379-removing-folder-from-url/#findComment-1255163 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.