Welcome to WebmasterWorld Guest from

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)

10+ Year Member

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?



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

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

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].



Featured Threads

Hot Threads This Week

Hot Threads This Month