- Joined
- Jul 10, 2022
- Messages
- 2
- Reaction score
- 0
Hello all,
the URL of my website is currently displayed with an .html extension at the end. I would like to remove this and have tried this code for the .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)\.html$ https://www.wf-media.net$1/ [R=301,L]
</IfModule>
Even though the rewrite rule and 301 redirect was applied to the "new" domain here, it does not work appropriately. Although the .html extension is now removed, another problem has now occurred.
The trailing slash behind the top-level-domain (.com/ ) is no longer present. This means that subpages of my site are no longer displayed, because the URL is incorrect.
Can anyone help me with this problem?
Thanks in advance!
the URL of my website is currently displayed with an .html extension at the end. I would like to remove this and have tried this code for the .htaccess file:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)\.html$ https://www.wf-media.net$1/ [R=301,L]
</IfModule>
Even though the rewrite rule and 301 redirect was applied to the "new" domain here, it does not work appropriately. Although the .html extension is now removed, another problem has now occurred.
The trailing slash behind the top-level-domain (.com/ ) is no longer present. This means that subpages of my site are no longer displayed, because the URL is incorrect.
Can anyone help me with this problem?
Thanks in advance!