Skip to content
Tizards Briefcase

Category: Apache

Mac OS X vhosts not working after yoemite / el capitan upgrade

February 21, 2016 Stuart Leave a comment

This is because you forgot to back up your httpd.conf… – easily fixed: First, back up the current httpd.conf: (you’ll…

Continue Reading →

Posted in: Apache Filed under: 403 forbidden, vhosts

SVG Not Displaying

September 11, 2013 Stuart Leave a comment

I’ve just been configuring and setting up a server environment for a project i’ve been building. Everything working at it…

Continue Reading →

Posted in: Apache

php session save path permission denied

February 23, 2013 Stuart 2 Comments

seems an update in plesk overnight (twice in the last few weeks) has cocked up the php session_save_path: no websites…

Continue Reading →

Posted in: Apache, Linux, PHP

apache rewriterule: rewrite url to hash

October 25, 2012 Stuart Leave a comment

After building a new website for a client, i needed to redirect their old URLs to new ones, normally a…

Continue Reading →

Posted in: Apache, Rewrite Rules

creating html snapshots for google

October 18, 2012 Stuart Leave a comment

A recent project required that we use hash navigation for speedy access to content, this also eeded to be indexed…

Continue Reading →

Posted in: HTML, PHP, Rewrite Rules Filed under: html snapshots

parse htm files for php under cgi

September 17, 2012 Stuart Leave a comment

a few older sites that were built by fools using .htm as the extension and telling the apache to serve…

Continue Reading →

Posted in: Apache

force a trailing slash

August 25, 2012 Stuart Leave a comment

add a trailing slash to all URLs. [code]RewriteCond %{REQUEST_URI} /+[^\.]+$ RewriteRule ^(.+[^/])$ %{REQUEST_URI}/ [R=301,L][/code]

Continue Reading →

Posted in: Apache, Rewrite Rules

using get variables

Stuart Leave a comment

This example changes /product.php?product_id=909 to /product?id=909 [code]RewriteCond %{QUERY_STRING} product_id=(.*) RewriteRule ^product.php(.*) /product?id=%1[/code]

Continue Reading →

Posted in: Rewrite Rules

remove www.

Stuart Leave a comment

remove the www. [code]RewriteCond %{HTTP_HOST} !^domain.com$ [NC] RewriteRule ^(.*)$ http://domain.com/$1 [L,R=301][/code]

Continue Reading →

Posted in: Rewrite Rules

Post navigation

Page 1 of 2
1 2 Next →

Categories

  • Apache (12)
    • Rewrite Rules (7)
  • C# (1)
  • CSS (7)
  • dev testing (2)
  • HTML (6)
  • iPhone (1)
  • Javascript (15)
    • jQuery (9)
  • Linux (50)
    • mailservers (1)
    • Postfix (3)
    • vi (6)
  • Mac OS X (5)
  • MySQL (9)
  • Perl (5)
  • PHP (23)
    • CodeIgniter (1)
    • Cubex (1)
    • fuelPHP (9)
    • PHP Storm (1)
  • Plesk (16)
  • Python (1)
  • Ruby (5)
    • Hostpay (4)
  • unassigned (1)
  • Domain Availability Checker
Copyright © 2022 Tizards Briefcase — Lyrical WordPress theme by GoDaddy