-
Notifications
You must be signed in to change notification settings - Fork 0
/
.htaccess
48 lines (36 loc) · 1.63 KB
/
.htaccess
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
##########################################################
################ ENVIRONMENT SETUP #######################
##########################################################
#AddHandler x-httpd-php5-cgi .php .html
#Options -MultiViews
#Options +FollowSymLinks
####################################################
# Skip if directory / file exists...
####################################################
RewriteCond %{REQUEST_FILENAME} -f [NC,OR]
RewriteCond %{REQUEST_FILENAME} -d [NC]
RewriteRule .* - [L]
##########################################################
################ MOD_REWRITE RULES #######################
##########################################################
RewriteEngine On
RewriteRule ^(include|includes|js|images|styles) - [L]
####################################################
# HOST rewrite rule(s)...
####################################################
RewriteCond %{HTTP_HOST} ^ournews.com
RewriteRule (.*) http://www.ournews.com/$1 [R=301,L]
####################################################
# News topic rewrite rule(s)...
####################################################
RewriteRule ^news/topic/(.*).html$ article.php?modifier=$1 [NS,L]
####################################################
# Page rewrite rules...
####################################################
RewriteRule ^news/$ headlines.php [NS,L]
RewriteRule ^article/$ article.php [NS,L]
####################################################
# Catch any remining URLs...
####################################################
RewriteRule (.*)$ http://192.168.1.200/code/20120719022648/? [NS,L]
#RewriteRule (.*)$ http://www.ournews.com? [NS,L]