I would like to get the following apache-redirect working:
When someone surfs to mydomain.tld/contact, they should be redirected to mydomain.tld/#contact.
This is because I built a one-page-website with autoscrolling.
This is not working:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php#$1 - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
Thanks!
RewriteRule ^index.php\/(.*)$ \#$1– pduersteler Feb 6 at 14:27RewriteRule ^index.php\/(.*)$ \#$1it still won't work. – Bert Feb 6 at 14:35