pianoman993 Posted February 2, 2010 Share Posted February 2, 2010 Hello .htaccess geniuses! I have a small question for you. Would it be possible to: Detect "mysite.com/#/profile" in a url and change it to "mysite.com/profile?" (all within a .htacces file?) If so, what kind of code would I have to use to implement such a task? I'm assuming I need an if statement followed by a 301 redirect, but I'm not sure what that kind of code would look like. Any help would be greatly appreciated!! Thanks in advance! Mark Anderson Link to comment https://forums.phpfreaks.com/topic/190616-detect-mysitecomprofile-in-url-and-change-to-mysitecomprofile/ Share on other sites More sharing options...
RussellReal Posted February 3, 2010 Share Posted February 3, 2010 it is possible.. for the INITIAL request.. any other requests involving # in the url will be interpreted as anchor'd urls for the same html page.. you should do something like /p/profile-name Link to comment https://forums.phpfreaks.com/topic/190616-detect-mysitecomprofile-in-url-and-change-to-mysitecomprofile/#findComment-1005845 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.