runeveryday Posted December 8, 2009 Share Posted December 8, 2009 who can tell me when to use url redirection and url rewrite in .htaccess.what difference between these. any tips would be appreciated. Quote Link to comment https://forums.phpfreaks.com/topic/184334-url-redirection-and-rewrite-in-htaccess/ Share on other sites More sharing options...
whit3fir3 Posted December 10, 2009 Share Posted December 10, 2009 In short rewrite rules can do most everything that redirect does. About the only time I use redirect instead of rewrite rules is if I wanted to send a 300 http header. Rewrite rules are used to make changes to URL with out the end user knowing about it. Rewrite rules are a bit more complex and people some times have a hard time writing them due to the fact that they use Regular Expressions. Quote Link to comment https://forums.phpfreaks.com/topic/184334-url-redirection-and-rewrite-in-htaccess/#findComment-974491 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.