logo-dw

Go Back   Dreamweaver Club Forums > Hand Coders Forum > General
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 03-12-2010, 05:40 PM   #1
kremo5le
kremo5le's Avatar
 
Join Date: Nov 2008
Location: San Diego, California
Posts: 112
Exclamation Exclude one folder from being re-writen - .htaccess

Hello everyone,

I have the rule to re-write every non-www into a www. However, there is one folder I want to exclude as when I try to access it without the www it generates an error. I know it can be done, and I have seen the solution online, yet I don't quite know what to write to get it done. Here's how my .htacces looks like for the mod_rewrite part:

RewriteEngine On
RewriteBase /
RewriteRule ^(press_kit) - [L]
RewriteCond %{HTTP_HOST} !^www\.site\.com$ [NC]
RewriteRule ^(.*)$ http://www.site/$1 [R=301,L]

Now, in order to avoid this issue for the "press_kit" folder, what do I have to add to make it work with or without the www?

Thank you before hand,

k.
__________________
Otter Creative Studio
San Diego Web Design, SEO, & Graphic Design
kremo5le is offline   Reply With Quote
Old 03-17-2010, 06:27 PM   #2
kremo5le
kremo5le's Avatar
 
Join Date: Nov 2008
Location: San Diego, California
Posts: 112
Arrow [UNRESOLVED] I think this is too hard!

It seems nobody knows the answer to this! I'm still stuck, but I think I can't do much on my own.

Thanks!
__________________
Otter Creative Studio
San Diego Web Design, SEO, & Graphic Design
kremo5le is offline   Reply With Quote
Old 03-18-2010, 06:59 PM   #3
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

Just add a .htaccess file in the press_kit folder
domedia is offline   Reply With Quote
Old 03-18-2010, 07:01 PM   #4
kremo5le
kremo5le's Avatar
 
Join Date: Nov 2008
Location: San Diego, California
Posts: 112
Exclamation Htaccess File

Quote:
Originally Posted by domedia View Post
Just add a .htaccess file in the press_kit folder
Hey Domemia,

I did that as part of the settings I did for that client. This folder is also password-protected.
__________________
Otter Creative Studio
San Diego Web Design, SEO, & Graphic Design
kremo5le is offline   Reply With Quote
Reply


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

Forum Jump


All times are GMT. The time now is 07:11 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com