Welcome to WebmasterWorld Guest from 54.162.239.134

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Need felp with simple rule

     
2:25 pm on Dec 24, 2005 (gmt 0)

10+ Year Member



Here is the url for an image
http://111.111.111.111/images/title.withbottom.gif

What is the rule to redirect the above url to
http://www.mysite/images/title.withbottom.gif

[edited by: jdMorgan at 4:35 pm (utc) on Dec. 24, 2005]
[edit reason] De-linked. [/edit]

4:35 pm on Dec 24, 2005 (gmt 0)

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



To answer your question specifically,

RewriteCond %{HTTP_HOST} ^111\.111\.111\.111
RewriteRule ^images/title\.withbottom\.gif$ http://www.mysite/images/title.withbottom.gif [R=301,L]

but you might consider a domain-wide redirect to help prevent anyone ever linking to your images by IP address or non-www domain, and to correct the requests if they do. That would make specific rules like this unnecessary.

Jim

 

Featured Threads

Hot Threads This Week

Hot Threads This Month