So I'm trying to redirect mysite.com to mysite.com/#home and the mod_rewrite code that im using is turning #home into %23home. Is there any way to change it to redirect to #home and not %23home?
So I'm trying to redirect mysite.com to mysite.com/#home and the mod_rewrite code that im using is turning #home into %23home. Is there any way to change it to redirect to #home and not %23home?
do you have a file in the document root with name #home or what do you want to do using this? what is after # is part of the %{QUERY_STRING}.
best regards
I'm using an ajax hashtag loader, so different hashtags load different content into the main content area, without a hashtag its blank, so I would like it to display #home when someone accesses the domain directly.
I'm using an ajax hashtag loader, so different hashtags load different content into the main content area, without a hashtag its blank, so I would like it to display #home when someone accesses the domain directly.
try this:
Code:
RewriteRule ^(.*)$ yourhashtagloader?$1 [L]
and try to change ?$1 according with what the hashtag loader expect.
In case doesn't work, try to use the PT flag.
also try %{QUERY_STRING} or %{REQUEST_URI}