• Home
  • About
    • BI, Workflow Automation, and App Development
    • Login
  • Search
dForge.net
Soguecode.ioTwitterGitHubCodepen
 
Skip to content
  • Home
  • About
    • BI, Workflow Automation, and App Development
    • Login
  • Search
Home Posts tagged "apache"

Tag: apache

Development

Disable PHP Execution for a Specific Folder in Apache

By Ron S. November 29, 2012 November 29, 2012  apache, htaccess, sethandler 0

There was a scenario where I set the handler for PNG files to the PHP engine for a certain directory. In this case, it was a barcode generator script and I didn’t want the extension to be .php. In the same directory, however, I had actual PNG files that the …

Continue reading"Disable PHP Execution for a Specific Folder in Apache"
Development

Redirect http to https in Apache

By Ron S. October 24, 2012 October 24, 2012  apache, htaccess, redirect 0

Here’s a method of redirecting http to https. Put the following in the directive, or in the .htaccess file in the root web directory: RewriteEngine on RewriteCond %{SERVER_PORT} !443 RewriteRule ^(.*)$ https://www.example.com/$1 [R=301,L]

Continue reading"Redirect http to https in Apache"
Back to Top
@ 2017 Soguecode.io, LLC.
Powered by Fluida & WordPress.