ss71
posted this
02 April 2019
I wondered if there is a way, perhaps some code for an .htaccess file, that means that the file name and any extra address info is not shown in the address bar. So with www.mywebsite.com/contact.htmll#anchorlink even if the page and anchor link had been clicked, only www.mywebsite.com/ or www.mywebsite.com appears in the address bar? I did try adding the below to .htaccess, but it did not work. Any suggestions? Thanks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html
I wondered if there is a way, perhaps some code for an .htaccess file, that means that the file name and any extra address info is not shown in the address bar. So with www.mywebsite.com/contact.htmll#anchorlink even if the page and anchor link had been clicked, only www.mywebsite.com/ or www.mywebsite.com appears in the address bar? I did try adding the below to .htaccess, but it did not work. Any suggestions? Thanks
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^(.*)$ $1.html
Vote to pay developers attention to this features or issue.