-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhtaccess.tmpl
executable file
·56 lines (30 loc) · 1.3 KB
/
htaccess.tmpl
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
49
50
51
52
53
54
55
56
DirectoryIndex web index.php index.html
<Files web>
ForceType php5-cgi
</Files>
<IfModule mod_php4.c>
php_flag session.use_trans_sid off
</IfModule>
RewriteEngine on
# Removes index.php
RewriteCond $1 !\.(gif|jpe?g|png)$ [NC]
RewriteCond $1 !(stats)$ [NC]
##RewriteCond $1 !(\/storage\/) [NC]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
RewriteCond %{QUERY_STRING} fb_comment_id=
RewriteRule (.*) http://www.truthnews.com.au/$1? [R=301,L]
RewriteCond %{QUERY_STRING} ^feed=podcast$
#RewriteRule ^/radio/wordpress/$ /web/feeds/tna.rss2 [R=301]
#RewriteRule ^/radio/wordpress/$ /web/feeds/tna.rss2 [L]
RewriteRule ^(.*)$ http://www.truthnews.com.au/web/feeds/tna.rss2? [R=301,L]
RewriteCond %{HTTPS} off
RewriteCond $1 ^(subscribe) [NC]
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteRule ^radio/wordpress$ /web/feeds/tna.rss2? [L]
#RewriteRule (.*) http://www.truthnews.com.au/web/feeds/tna.rss2? [L]
#RewriteRule ^radio/wordpress/$ /web/feeds/tna.rss2 [L]
#RewriteRule ^/radio/wordpress/?feed=podcast /web/feeds/tna.rss2? [l,nc]
# BOING RedirectMatch ^/$ http://www.truthnews.com.au/radio/wordpress/
#Redirect 301 /radio/wordpress/ http://www.truthnews.com.au/