Problem Mortgage - Buy Anything On eBay - Personal Car Finance - Credit Cards - The eBay Song

PDA

View Full Version : RewriteRule - need to use #


ruby
Nov 4th 2007, 3:27 am
Hi all.... we all know the hash (#) is a comment but I need to use it as follows"

RewriteRule ^test/(.*?)$ /test#$1


The problem is apache recognises the # as a comment so ignores the #$1

I tried looking for the HTML code but it seems # doesn't have one I can use instead of the actual character... or does it?

Any help appreciated.

mcfox
Nov 4th 2007, 3:38 am
Can't you just use the backslash to declare it as a literal character?

RewriteRule ^test/(.*?)$ /test\#$1

I'm not much of a programmer but I think that should work.

ruby
Nov 4th 2007, 3:40 am
Thanks... but no doesn't seem to work, I did already try that.