homepage Welcome to WebmasterWorld Guest from 54.167.138.53
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Complex(?) htaccess domain rewrite.
Want to exclude some things from redirecting
Stujoe




msg:1519710
 1:49 pm on Nov 21, 2005 (gmt 0)

I am trying to redirect domain.com to www.domain.com but every time I use the htaccess ones I find, it messes up one of my subdirectories and some of my image references.

Is there a way I can redirect domain.com to www.domain.com but exclude gif, jpg, png files and the /exdirectory/ directory from redirecting?

Thanks.

 

jdMorgan




msg:1519711
 2:29 pm on Nov 21, 2005 (gmt 0)

Yes, use RewriteCond to exclude the resources you do not wish to rewrite or redirect.

For more information, see the documents cited in our forum charter [webmasterworld.com] and the tutorials in the Apache forum section of the WebmasterWorld library [webmasterworld.com].

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved