Mod rewrite causing problems for Mailto: tag

Posted on 2007-10-11
Last Modified: 2008-01-09
I did a site using mod_rewrite - it makes the URLs come out like
everything is working just fine execpt. if I have an email address in my page, it just makes the link like http://whatever.comt/ and it does not work.
is there some kind of exception I can write?
here is the .htaccess file:
<IfModule mod_rewrite.c>
      Options         +FollowSymLinks
      RewriteEngine   On
      RewriteCond     %{REQUEST_FILENAME}     !-f
      RewriteCond     %{REQUEST_FILENAME}     !-d
      RewriteRule ^(.*)$ index.php?pg=$1 [QSA,L]

please help
Question by:iconpacific
    LVL 50

    Accepted Solution

    Whatever is causing that issue, I do not believe it is mod_rewrite.

    mod_rewrite alters URL requests from the client.  'mailto:' links do not make a request of your server - they make a request of the local client's mail system.  In short, the server never hears about it if the user clicks a mailto: link.  

    Also, mod_rewrite does not assist in rendering the page.  It only points Apache to the correct page to render.  How it is rendered is up to Apache, PHP if present (or other server-side languages), and the user agent's interpretation of the resulting HTML/CSS.

    Take a look through your code.  Try examining the page in different browsers.  There is something else causing this issue.

    Author Comment

    Due to this reqponse I had a closer look. It was not mod_rewrite. It was some PHP code one of my programmers had stuff in there to make the URLs look a certin way, or something like that.

    LVL 50

    Expert Comment

    by:Steve Bink
    Glad I could point you in the right direction.  Good luck!

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Suggested Solutions

    If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
    In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
    Need more eyes on your posted question? Go ahead and follow the quick steps in this video to learn how to Request Attention to your question. *Log into your Experts Exchange account *Find the question you want to Request Attention for *Go to the e…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now