I know it can't be part of the authority section as usernames with an @ are used there, but can I use it in the path section.
The reason I want to use it is as part of an url for a users resources. eg
www.example.com/[email protected]/someresource
The @ symbol is a reserved character in RFC 3986 so it is not allowed in your URL. It would be converted to %40 when URL encoding is used.
In your case, best practice for RESTful and nice URLS, it should be www.example.com/domain.com/user/someresource
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With