Sorry: typo. You should use a 307 status code for temporary redirects.

Jon

On Nov 10, 2014, at 3:53 PM, Jon Clausen <[email protected]> wrote:

> 
> Is the current “www4” a Linux or Windows machine?  I would suggest handling 
> those at the web server level, with a 303 status code to let the search 
> engines know the redirect is temporary, rather than through the application - 
> with the exception of perhaps some dynamic redirects that need to be changed 
> “on-the-fly”.  Much more efficiently handled at the web server level.
> 
> Linux redirect to “ww4” example:
> 
> RewriteCond %{HTTP_HOST} ^www\.esu\.edu [NC]
> RewriteRule ^(.*) http://ww4.esu.edu$1 [L,R=307]
> 
> 
> Windows IIS web.config redirect example:
> 
> <rule name="Redirect www2www4 temp" stopProcessing="true">
>       <match url="^(.*)$" ignoreCase="false" />
>       <conditions logicalGrouping="MatchAll">
>           <add input="{HTTP_HOST}" pattern="^(.*\.)www\.esu\.edu$" 
> ignoreCase="true" negate="true" />
>       </conditions>
>       <action type="Redirect" url="http://ww4.esu.edu/{R:1}"; 
> redirectType="Temporary" />
> </rule>
> 
> HTH,
> Jon
> 
> 
> 
> On Nov 10, 2014, at 3:39 PM, Steve LaBadie <[email protected]> wrote:
> 
>> 
>> We are currently using a meta date redirect from a UNIX box. The redirects 
>> currently sit on www and the production server sit at www4. We are taking 
>> down www so the redirects have to be recreated on our new production server 
>> which will be taking www.
>> 
>> Current redirect structure:
>> <HTML>
>> <BODY>
>> <META HTTP-EQUIV=REFRESH 
>> CONTENT="1;URL=http://www4.esu.edu/about/offices/police/index.cfm";>
>> </BODY>
>> </HTML>
>> 
>> When the user types in www.esu.edu/police<http://www.esu.edu/police> it 
>> takes you to the correct page. We use this format to avoid long URLs on 
>> marketing pieces.
>> 
>> Can someone give me directions for best practices using CF. The new 
>> production server currently runs CF9 but looking to upgrade to CF11.
>> 
>> 
>> Steve LaBadie, Web Manager
>> East Stroudsburg University
>> 570-422-3999
>> [email protected]<mailto:[email protected]>
>> 
>> [facebook-16x16]<http://www.facebook.com/eaststroudsburguniversity>  
>> [twitter-16x16] <http://twitter.com/esuniversity>   [youtube-16x16] 
>> <http://www.youtube.com/user/esuedu>
>> 
>> 
>> 
>> 
> 
> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359597
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to