Forum Moderators: phranque
[example.com...] name&entry=store
The problem is that the customer created a username that has a space such as "user name". It displays fine when entering the query directly because the browser automatically enters a %20 for the space. However, when redirecting through Apache, the space is not interpreted and cuts it off as:
[example.com...]
I tried entering the %20 as part of the redirection query but the system doesn't understand the %20 properly since the actual username contains a space.
Is there an Apache token that can be entered where the space is so that Apache can process the redirect correctly?
Welcome to WebmasterWorld!
I presume you're using mod_rewrite to do this, so you're looking for a regular-expressions token, not an Apache token. In mod_rewrite, you can usually use either "\ " or "\s" depending on the version on regex installed with the server OS.
If that doesn't work, the general solution for handling percent-escaped characters is presented in post #10 of this thread: [webmasterworld.com...]
Jim
So I would edit the .htaccess file with:
[example.com...] name&entry=store
or
[example.com...] name&entry=store
For Apache to recognize and process the space properly?