This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !dispatch\.php$ | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^api/([^/\.]+)/([^/\.]+)/?$ dispatch.php [L,QSA] | |
</IfModule> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#This goes in your #server-config | |
<VirtualHost *:80> | |
ServerName bobswordpress.dev | |
ServerAdmin [email protected] | |
DocumentRoot /var/www/bobswordpress.dev/ | |
ServerAlias www.bobswordpress.dev | |
DirectoryIndex index.html index.php | |
<Directory /var/www/bobswordpress.dev/> | |
Options FollowSymLinks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Fun little quiz | |
Assuming this string: "January 5th, 2012" | |
In the shortest amount of code possible, place: | |
- 'January' within a $month variable | |
- '5th' within a $day variable | |
- '2012' within a $year variable. |
NewerOlder