Logo
Explore Help
Sign In
science-ation/science-ation
2
0
Fork 1
You've already forked science-ation
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
science-ation/.htaccess

10 lines
224 B
ApacheConf
Raw Normal View History

Add a .htaccess to turn register_globals OFF (if the server is configured to allow .htaccess to do such things)
2007-11-29 19:15:57 +00:00
php_flag register_globals off
Apache/PHP seems to let us turn off magic quotes in the .htaccess. Yay. magic quotes DEPRECATED as of PHP 5.3.0, REMOVE as of 6.0, on by default for any PHP < 5.3.0. Pain in the ASS. php is running the urldecode for us, seeing that the string has quotes, then adding quotes before we can json_decode(). It only does this in POST and GET
2010-04-18 22:40:05 +00:00
php_flag magic_quotes_gpc off
Add cms table, and move the 'index' pagetext to cms Add .htaccess rules for the cms Add cms page display code and convert index.php to pull from the cms If no page title is passed to send_header(), output the fair name in the <title> tag
2008-08-19 21:13:29 +00:00
RewriteEngine On
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-l
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^web/(.*)$ cms.php?f=$1 [L]
Reference in New Issue Copy Permalink
Powered by Gitea Page: 43ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API