![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
When there's a new page on our site that visitors may find interesting, I send an e-mail to our mailing list. In this message, I give the link of the new page. Since the URL is just part of a sentence, it may happen that it is followed immediately by a period: For more info, see http://www.example.com/newpage.html. |
#3
| |||
| |||
|
|
When there's a new page on our site that visitors may find interesting, I send an e-mail to our mailing list. In this message, I give the link of the new page. Since the URL is just part of a sentence, it may happen that it is followed immediately by a period: For more info, see http://www.example.com/newpage.html. Many mail clients make a link in a plain text e-mail message clickable, which is a good thing. However, some of these clients treat the period at the end of the sentence as being part of the URL, with the result that the visitor is presented a 404 error message. I have corrected for this behaviour by adding the following to my .htaccess: RewriteRule ^(.*)\.$ $1 I could also have decided to avoid a period directly after a URL, but other people may write about this new page as well. The RewriteRule is a universal solution. The drawback of this method is that it messes up the statistics I might derive from the access logs. Visitors of this page are now divided over two URLs. I wonder how other people handle this situation. |
#4
| |||
| |||
|
|
Garmt de Vries wrote: When there's a new page on our site that visitors may find interesting, I send an e-mail to our mailing list. In this message, I give the link of the new page. Since the URL is just part of a sentence, it may happen that it is followed immediately by a period: For more info, see http://www.example.com/newpage.html. Try it with brackets in your email: For more info, see <http://www.example.com/newpage.html>. |
#5
| |||
| |||
|
|
On Fri, 31 Mar 2006 14:50:47 +0200, Beauregard T. Shagnasty a.nony.mous (AT) example (DOT) invalid> wrote: Garmt de Vries wrote: When there's a new page on our site that visitors may find interesting, I send an e-mail to our mailing list. In this message, I give the link of the new page. Since the URL is just part of a sentence, it may happen that it is followed immediately by a period: For more info, see http://www.example.com/newpage.html. Try it with brackets in your email: For more info, see <http://www.example.com/newpage.html>. Sounds like a good plan, but how does this look in a mail client that expects HTML-formatted mail? Wouldn't it treat the http://www.example.com/newpage.html> as if it were a tag? |
#6
| |||
| |||
|
|
For more info, see http://www.example.com/newpage.html. |
#7
| |||
| |||
|
|
For more info, see http://www.example.com/newpage.html. Many mail clients make a link in a plain text e-mail message clickable, which is a good thing. However, some of these clients treat the period at the end of the sentence as being part of the URL, with the result that the visitor is presented a 404 error message. |
|
I wonder how other people handle this situation. |
#8
| |||
| |||
|
|
Sounds like a good plan, but how does this look in a mail client that expects HTML-formatted mail? |
#9
| |||
| |||
|
|
RewriteRule ^(.*)\.$ $1 The drawback of this method is that it messes up the statistics I might derive from the access logs. Visitors of this page are now divided over two URLs. |
![]() |
| Thread Tools | |
| Display Modes | |
| |