Forum Moderators: phranque
I'm trying to create a Mod_rewrite rule that points
the url "mysite.com/c#" to the folder location "/c/cs/csharp/"
but I don't know the syntax, with the below 3 all failing
(separately):
RewriteRule ^c\#/?$ /c/cs/csharp/ [NC,L]
RewriteRule ^c\%23/?$ /c/cs/csharp/ [NC,L]
RewriteRule ^c\x23/?$ /c/cs/csharp/ [NC,L]
(0x23 is Hex for the ascii character "#")
Sorry if this is a basic question. Any help greatly appreciated.
Dan
If it's robot making such requests, you can check what they are sending by looking at the log, and then catch with \# (# or %23 in uri) or \%23 (%2523).
Check with RewriteLog or other debugging method.
[webmasterworld.com...]
Alternative method.
[webmasterworld.com...]