Skip to content

Instantly share code, notes, and snippets.

@phalcon
Created November 27, 2012 20:33
Show Gist options
  • Save phalcon/4156826 to your computer and use it in GitHub Desktop.
Save phalcon/4156826 to your computer and use it in GitHub Desktop.

Install Phalcon and check that the extension is loaded in phpinfo()

Open C:\Windows\System32\drivers\etc\hosts and added:

127.0.0.1       my.store

Open C:\xampp\apache\conf\extra\httpd-vhosts.conf and uncommented:

NameVirtualHost *:80

Then at the end of the file append:

<VirtualHost *:80>
	ServerName my.store
	DocumentRoot "C:\xampp\htdocs\store\public"
	DirectoryIndex index.php
	<Directory "C:\xampp\htdocs\store\public">
		Options All
		AllowOverride All
		Allow from all
		RewriteEngine On
        	RewriteCond %{REQUEST_FILENAME} !-d
        	RewriteCond %{REQUEST_FILENAME} !-f
        	RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]
	</Directory>
</VirtualHost>

Restart Apache and open in your browser http://my.store

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment