Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- DocumentRoot "C:\Files\ApacheWeb\milkom\web"
- ServerName "milk.localhost"
- ServerAlias "milk.dev"
- <Directory "C:\Files\ApacheWeb\milkom\web">
- AllowOverride All
- # use mod_rewrite for pretty URL support
- RewriteEngine on
- # If a directory or a file exists, use the request directly
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- # Otherwise forward the request to index.php
- RewriteRule . index.php
- # if $showScriptName is false in UrlManager, do not allow accessing URLs with script name
- RewriteRule ^index.php/ - [L,R=404]
- </Directory>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement