Skip to content

Instantly share code, notes, and snippets.

@zeelot
Created September 15, 2009 19:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeelot/187543 to your computer and use it in GitHub Desktop.
Save zeelot/187543 to your computer and use it in GitHub Desktop.
# HTTPDOCS .htaccess
# Created by Redirection Module: Apache
# Thu, 06 Aug 2009 13:14:48 -0400
# Redirection 2.1.22 - http://urbangiraffe.com/plugins/redirection/
<Files .htaccess,.svn>
order allow,deny
deny from all
</Files>
Options +FollowSymlinks
<IfModule mod_rewrite.c>
#rules to force http on insecure pages
#RewriteCond %{HTTPS} =on
#RewriteCond %{REQUEST_URI} !^(public|wordpress|media).* [NC]
#RewriteCond %{REQUEST_URI} !^(shop\/checkout).* [NC]
#RewriteRule (.*) http://%{SERVER_NAME}/$1/halt [R,L]
#rules to force https on secure pages
#RewriteCond %{HTTPS} !=on
#RewriteCond %{REQUEST_URI} !(shop/checkout).* [NC]
#RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
#RewriteCond %{HTTPS} !=on
#RewriteCond %{REQUEST_URI} ^/([a-z]{2})/shop/(checkout|receipt|confirm).* [NC]
#RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
# Forcing SSL on wordpress admin pages as well
#RewriteCond %{HTTPS} !=on
#RewriteCond %{REQUEST_URI} ^(wordpress).* [NC]
#RewriteRule (.*) https://%{SERVER_NAME}/$1 [R,L]
RewriteRule ^([a-z]{2})?/shop/account/? /public/$1/main/services/ [R=301,L]
RewriteRule ^shop/account/? /public/main/services/ [R=301,L]
RewriteRule ^([a-z]{2})?/shop/?$ /$1/shop/child-id-kit/ [R=301,L]
RewriteRule ^shop/$ /shop/child-id-kit/ [R=301,L]
RewriteRule ^([a-z]{2})?/childidkit/buy-now/?$ /$1/shop/child-id-kit/ [R=301,L]
RewriteRule ^childidkit/buy-now/$ /shop/child-id-kit/ [R=301,L]
#temp rule to support child id kit help function
RewriteCond %{HTTP_HOST} ^(help\.)?amberalert\.com [NC]
RewriteRule (.*) http://dev-01.amberalert.com/$1 [R=301,L]
</IfModule>
# End of Redirection
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# WORDPRESS .htaccess
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /wordpress/index.php [L]
</IfModule>
# END WordPress
# KOHANA .htaccess
# Turn on URL rewriting
RewriteEngine On
# Installation directory
RewriteBase /public/
# Protect application and system files from being viewed
RewriteRule ^(application|modules|system) - [F,L]
# Allow any files or directories that exist to be displayed directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
# Rewrite all other URLs to index.php/URL
RewriteRule .* index.php/$0 [PT,L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment