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/#...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
|
|||
|
"/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 |
|
|||
|
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! |