HTACCESS Rewrite for alternate Development Favicon

Htaccess Rewrites can be super easy and super helpful.

Image

Alternate Favicons

For developers with a production AND a development environment, it can be useful to be able to quickly differentiate which site you are currently working on just by glancing at the favicion.

 

HTACCESS Rewrite for Development Favicon

#=======[ Separate favicons for development vs production ]==#
RewriteCond %{HTTP_HOST} ^(stage|dev|development)\..*$ [NC]
RewriteRule ^favicon\.ico$ /wp-content/themes/askapache/images/favicon-stage.ico [NC,L,S=500]

 

For a purely non-htaccess WordPress way to do this, see Separate favicons for the Frontend and Backend (http://www.askapache.com/wordpress/favicon-frontend-backend.html)

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s