Well, therefore, having patted my head a little over this problem for a little more than a day ... I got up and did what I MUST do yesterday, and FORGOTTEN what is happening!
What Laravel TRYING does here, inserts the index.php file right in front of the track indicated as Route. For example, if you specified Route::get('/account/create', ..., and run your application from say localhost/laravel/authenticate/public/account/create in your browser, then laravel wants to execute localhost/authenticate/public/index.php/account/create , but for this .... Apache should see these requests through /wamp/www/laravel/laravel/authentication/public (your path may vary slightly, depending on where your application is laravel is actually installed, but the final public is the place where the replacement should be performed) "RewriteRule" must be applied.
Fortunately, laravel provides the correct Rewrite rule in a convenient .htaccess file right in the public application folder. PROBLEM, the code in this .htaccess file will not work with the way WAMP is configured out of the box. The reason for this SEEMS is the problem suggested by muvera at the top of this thread - the rewrite_module code must be loaded by Apache before the RewriteRule stuff will work. Heck, that makes sense.
The part that DOES NOT make sense: just stopping and restarting Apache services will not pick up the changes necessary for WAMP to do the right thing with the RewriteRule - I know I tried this many times!
What works: make the changes suggested by muvera (see top of thread) to load the correct modules. Then, reset your entire Windows session, thus completely removing Apache from memory. Restart (reload) WAMP and VOILA! the fix works, the correct RewriteRule, yada, yada is applied; I live happily ever after.
The good news is all of this: now I know more about the .htaccess , RewriteRule and httpd.conf files. There is a good (effective) argument for moving the logic from your application to the public .htaccess file and pasting it into the Directory ... section Directory ... your httpd.conf in the Apache BTW bin folder (especially if you have access to this folder).
mdg Mar 15 '14 at 18:31 2014-03-15 18:31
source share