: Redirect URL ending with dot I submitted my site's URL to my workplace's printed newsletter and when I get the printed version, they added a dot to the end of it. Some people will realize
I submitted my site's URL to my workplace's printed newsletter and when I get the printed version, they added a dot to the end of it. Some people will realize that the period is not a part of the URL but others will not. Is there an easy way to redirect from example.com/home. to example.com/home?
I have a IIS 7.0 shared hosting with GoDaddy. This means I have access to the box only through their interface so some options might be limited.
More posts by @Jamie184
2 Comments
Sorted by latest first Latest Oldest Best
GoDaddy's Windows shared hosting accounts with IIS 7.0 support the Microsoft URL Rewrite Module, which provides URL redirect functionality similar to Apache's mod_rewrite module, that the previous answer references.
To use this module, you would either modify or create a web.config file, located in your root directory and then restart the IIS service.
I'm unable to test this, but that might look something like:
<?xml version="1.0"?>
<!-- Web.Config Configuration File -->
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Redirect dot to domain " stopProcessing="true">
<match url=".*" />
<conditions>
<add input="{HTTP_HOST}" pattern="^example.com/home.$" />
</conditions>
<action type="Redirect" url="http://example.com/home/{R:0}”
redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
The lines to modify for your domain (and possibly the patterns too) are:
<add input="{HTTP_HOST}" pattern="^example.com/home.$" />
<action type="Redirect" url="http://example.com/home/{R:0}”
For more on pattern matching, see: URL Rewrite Module Configuration Reference: Rule Pattern
Lastly, if this proves difficult for you and you're not dependent on using Windows for your web hosting account, you can simply switch to Linux web hosting with GoDaddy instead - see this for more: GoDaddy Support: Switching Your Hosting Account Operating System
Add this to your .htaccess:
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.comt$ [OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteRule ^home.$ "http://example/home" [R=301,L]
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.