.htaccess - htaccess rewrite #section to /section -




i have problem htaccess

i'm making website youtube creator , improve seo need htaccess rule likes users vists page (that improves google listing)

my website contains sections (like <section id="contact">)

i'm trying /contact
rewriting website.com/#contact website.com/contact when try , results in 404 (the requested url /nieuw/contact not found on server.)

currently have file called .htaccess (root/nieuw/.htaccess)

rewriteengine on  options +followsymlinks rewriterule ^/contact$ %{http_host}/#contact [l] 

i tried without %{http_host}

directory structure:

-root --nieuw ---index.php sections --oud --.htaccess contains `rewriterule ^(.*)$ nieuw/$1 [l]`   (and other stuff isn't relevant question) 

can tell me wrong , how solve it?





wiki

Comments

Popular posts from this blog

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -