Welcome to WebmasterWorld Guest from 54.227.47.228

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Complex(?) htaccess domain rewrite.

Want to exclude some things from redirecting

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

New User

10+ Year Member

joined:July 14, 2003
posts:22
votes: 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.

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

Senior Member

WebmasterWorld Senior Member jdmorgan is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 31, 2002
posts:25430
votes: 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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members