Note that there are some explanatory texts on larger screens.

plurals
  1. POLaravel 4 Virtual Host and mod rewrite setup
    primarykey
    data
    text
    <p>I've been trying for a few hours to install Laravel 4 and make the Virtual Hosts and Routing work but so far I've been unlucky. I'm mentioning that I'm doing this on a <strong>Windows 7</strong> machine and <strong>WAMP</strong>.</p> <p>I'll describe what I've already done:</p> <p>I've enabled rewrite_module.</p> <p>Updated httpd-vhosts.conf with the following:</p> <pre><code>&lt;VirtualHost *:80&gt; DocumentRoot "c:/wamp/www/laravel/public" ServerName laravel.dev ServerAlias www.laravel.dev &lt;/VirtualHost&gt; </code></pre> <p>Next, I've set up the <code>etc/hosts</code>:</p> <pre><code>127.0.0.1 localhost 127.0.0.1 laravel.dev </code></pre> <p>Also, the following lines are uncommented both in <code>wamp/../conf/httpd.conf</code> and in <code>wamp/.../conf/original/httpd.conf</code>:</p> <pre><code>LoadModule vhost_alias_module modules/mod_vhost_alias.so Include conf/extra/httpd-vhosts.conf </code></pre> <p>The content of my <code>.htaccess</code> is the following:</p> <pre><code>&lt;IfModule mod_rewrite.c&gt; Options -MultiViews RewriteEngine On RewriteRule ^(.*)$ public/$1 [L] &lt;/IfModule&gt; </code></pre> <p><strong>Yet,</strong> when I go to <a href="http://laravel.dev" rel="noreferrer">http://laravel.dev</a> I get an <em>Internal Server Error - The server encountered an internal error or misconfiguration and was unable to complete your request.</em>.</p> <p>If i remove the <code>.htaccess</code> file from the <em>public</em> folder, then I'll see the Laravel "You have arrived" message. If then, i create a route like this (within the <em>app\routes.php</em>):</p> <pre><code>Route::get('/newroute', function() { return View::make('hello'); }); </code></pre> <p>and then go to <a href="http://laravel.dev/newroute" rel="noreferrer">http://laravel.dev/newroute</a> I'll end up with a <em>404 Not Found - The requested URL /newroute was not found on this server.</em></p> <p>I am seriously confused and have no idea how I can get past this. I mention (although i think it's clear) that I ran a <code>composer install</code> after cloning the project template, installing the dependencies.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload