Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


Mod rewrite causing problems for Mailto: tag

Posted on 2007-10-11
Medium Priority
Last Modified: 2008-01-09
I did a site using mod_rewrite - it makes the URLs come out like http://whatever.com/main/contact
everything is working just fine execpt. if I have an email address in my page, it just makes the link like http://whatever.comt/mailto:this@tha.com 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
  • 2
LVL 51

Accepted Solution

Steve Bink earned 1500 total points
ID: 20063260
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

ID: 20145950
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 51

Expert Comment

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

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As Wikipedia explains 'robots.txt' as -- the robot exclusion standard, also known as the Robots Exclusion Protocol or robots.txt protocol, is a convention to prevent cooperating web spiders and other web robots from accessing all or part of a websit…
Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
When cloud platforms entered the scene, users and companies jumped on board to take advantage of the many benefits, like the ability to work and connect with company information from various locations. What many didn't foresee was the increased risk…
Suggested Courses
Course of the Month10 days, 21 hours left to enroll

572 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