Welcome to WebmasterWorld Guest from 54.167.86.59

Forum Moderators: Ocean10000 & incrediBILL & phranque

Message Too Old, No Replies

Need felp with simple rule

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

Junior Member

10+ Year Member

joined:Mar 17, 2004
posts:129
votes: 0


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)

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


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

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members