Need help with URL redirect .htaccess


#1

We want to make it possible for our members to access their services via a direct url, such as:

www.anoox.com/#dean {to go to their main Anoox page}
&
www.anoox.com/#dean.chat {to go to their Chat room}
etc.

It does not seem to be possible to do this via Php since $SERVER['REQUESTURI'] does not read the part starting with # sign. So then I need help with the .htaccess file set up to get this done.

Thanks,


#2

# is used for URL fragments and is never sent to the server, so you can't do anything with it server side. The only way would be to do it client side but if I were you I'd safe myself from that world of hurt and just get rid of the # in the URL or at least replace it with something that does get sent to the server.


#3

Scallio,

1st, it is the rather customary now that such URLs be noted with #, as does for example Facebook in marking their members Facebook pages.

2nd, only character that Php $SERVER['REQUESTURI'] grabs is the ? character, but there is just too much room for error with this since regular URL GET data are sent this way.

So after much thinking, and believe me we been thinking about this for Months, it seems that use of # is best in such URL to connect to member account and account services,


#4

Then Facebook is using Javascript to make that work. That's the only way.

Also I was thinking along the lines of /u/dean for example, like reddit.


closed #5

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.