iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 06-09-2005, 12:39 PM
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2004
Location: Austin, TX
Posts: 1,229
jestep RepRank 0
Default .htaccess question

What I am trying to do is make is so any external link from my site automatically opens in a new window, without having to use a target="_blank" tag. Is there a way to do this in htaccess.I assume that there is but I dont know how to do it.
Reply With Quote
  #2 (permalink)  
Old 06-09-2005, 12:48 PM
WebProWorld Veteran
 
Join Date: Aug 2003
Location: Cornwall, UK
Posts: 972
speed RepRank 1
Default

.htaccess won't do that, you are stuck with target or JavaScript.
Reply With Quote
  #3 (permalink)  
Old 06-09-2005, 01:07 PM
WebProWorld 1,000+ Club
 
Join Date: May 2004
Location: Dallas, Texas USA
Posts: 1,492
bhartzer RepRank 1
Default

In regards to the new window links, you can add
<base target="_blank">
to each page so that all the links on that page will open in a new window. Add it between the <head> and </head> on each page.

I think that's the only thing you can do--I don't think you can do it in .htaccess.
__________________
Bill Hartzer's Blog
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 01:27 AM.



Search Engine Optimization by vBSEO 3.3.0