Skip to content

Commit 3b85ac9

Browse files
authored
Merge pull request #41 from creativecommons/chooser-redirect
updated apache config to redirect chooser and remove about cc licenses rewrites
2 parents f21b502 + 001540d commit 3b85ac9

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

config/web-sites-available/000-default.conf

+14-14
Original file line numberDiff line numberDiff line change
@@ -61,18 +61,20 @@ ServerName localhost:8080
6161

6262
###########################################################################
6363
# Chooser
64-
Alias /choose /var/www/git/chooser/docs
65-
<Directory /var/www/git/chooser/docs>
66-
# Disable .htaccess (for security and performance)
67-
AllowOverride None
68-
# Redirect .../index.php to .../
69-
RewriteCond %{REQUEST_FILENAME} "index\.php$" [NC]
70-
RewriteCond %{REQUEST_FILENAME} !-f
71-
RewriteRule (.*/)index\.php$ $1 [L,NC,R=301]
72-
# Deny access to PHP files (content should be only static files)
73-
RewriteRule .*\.php "-" [F,L]
74-
</Directory>
75-
RedirectPermanent /chooser /choose
64+
# Alias /choose /var/www/git/chooser/docs
65+
# <Directory /var/www/git/chooser/docs>
66+
# # Disable .htaccess (for security and performance)
67+
# AllowOverride None
68+
# # Redirect .../index.php to .../
69+
# RewriteCond %{REQUEST_FILENAME} "index\.php$" [NC]
70+
# RewriteCond %{REQUEST_FILENAME} !-f
71+
# RewriteRule (.*/)index\.php$ $1 [L,NC,R=301]
72+
# # Deny access to PHP files (content should be only static files)
73+
# RewriteRule .*\.php "-" [F,L]
74+
# </Directory>
75+
RedirectPermanent /choose/zero /choose
76+
RedirectPermanent /chooser /choose
77+
RedirectTemp /choose https://chooser-beta.creativecommons.org
7678

7779
###########################################################################
7880
# FAQ
@@ -104,8 +106,6 @@ ServerName localhost:8080
104106

105107
###########################################################################
106108
# WordPress/Default
107-
RewriteRule ^/licenses/$ /about/cclicenses/
108-
RewriteRule ^/publicdomain/$ /about/cclicenses/
109109
DocumentRoot /var/www/html
110110
<Directory /var/www/html>
111111
# Expected configuration for WordPress

0 commit comments

Comments
 (0)