Jump to content

Detect "mysite.com/#/profile" in url and change to "mysite.com/profile?"


pianoman993

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.