ModRewrite and # character

This is a discussion on ModRewrite and # character within the Apache Web Server forums, part of the Web Server and Related Forums category; I need to place url in .htaccess that contain #, like: RewriteRule ^some/path/here.html$ /some/url/with/hash/here/#...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-29-2005
/dev/null@localhost.ld
 
Posts: n/a
Default ModRewrite and # character

I need to place url in .htaccess that contain #, like:

RewriteRule ^some/path/here.html$ /some/url/with/hash/here/#blah [R=301,L]


Right now the result is that # is replaced with %23 in url and this url is not valid ie I get 404 error.

Does anyone have idea how to place this hash correctly?
  #2 (permalink)  
Old 09-29-2005
HansH
 
Posts: n/a
Default Re: ModRewrite and # character

"/dev/null@localhost.ld" <"/dev/null@localhost.ld"> schreef in bericht
news:dhfj7u$cqg$1@atlantis.news.tpi.pl...
> I need to place url in .htaccess that contain #, like:
>
> RewriteRule ^some/path/here.html$ /some/url/with/hash/here/#blah [R=301,L]
>
> Right now the result is that # is replaced with %23 in url and this url is

not valid ie I get 404 error.
RewriteRule ^some/path/here.html$ /some/url/with/hash/here/#blah
[R=301,L,NE]

HansH


  #3 (permalink)  
Old 09-29-2005
/dev/null@localhost.ld
 
Posts: n/a
Default Re: ModRewrite and # character

HansH wrote:
> "/dev/null@localhost.ld" <"/dev/null@localhost.ld"> schreef in bericht
> news:dhfj7u$cqg$1@atlantis.news.tpi.pl...
>
>>I need to place url in .htaccess that contain #, like:
>>
>>RewriteRule ^some/path/here.html$ /some/url/with/hash/here/#blah [R=301,L]
>>
>>Right now the result is that # is replaced with %23 in url and this url is

>
> not valid ie I get 404 error.
> RewriteRule ^some/path/here.html$ /some/url/with/hash/here/#blah
> [R=301,L,NE]
>
> HansH


thanks!
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:25 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0