Support the ongoing development of Laravel.io →
posted 9 years ago
Requests
Last updated 2 years ago.
0

How do you access your Laravel site? Do you have any domain assigned to this path or you just use localhost?

Have you ever used pretty urls on any other project on your server?

0

Hi,thanks for answer,

is in localhost. Use wamp server.

The complete url is: http://localhost/autonomo/public/resultados.

I never use pretty urls because it's the first time that i use Laravel.

If i change url like this:

http://localhost/autonomo/public/XXXX

When XXXX is a random word, the error is the same.

0

Pretty URLs are not Laravel's thing. Run phpinfo() function and see if, under Loaded Modules section, you see mod_rewrite module.

Last updated 9 years ago.
0

Yes yes, mod_rewrite is loaded. mcrypt also is instaled and enabled.

0

What is your PHP version?

0

PHP Version 5.5.12

0

What I can suggest is to check if your mod rewrite really works. Create another folder in your document root directory, for example /test. Put two files in there: index.php with some random content (for example "Hello World") and .htaccess file with the following content:

RewriteEngine On
RewriteRule ^cat/?$ index.php

  1. Go to http://localhost/test and see if you see your content.
  2. Then, go to http://localhost/test/foo and see if you see 404 error (you should).
  3. Then, go to http://localhost/test/cat and see if you see your content or 404.

If you see content on point 1 and 3, but 404 on point 2, it's working.

Last updated 9 years ago.
0

Yes, I see content in 3 and 1 points. In second point have a 404 error :(

Last updated 9 years ago.
0

Then I don't know what is the problem. Have you changed anything in any of core files? Try with new Laravel installation perhaps.

0

OK, I don't know what the problem was... But work.

I reinstall laravel via composer, but in this case i download the github repository and after execute "composer install". After move the files of other project, and work :)

A lot of thanks for your time kokokurak!

0

Sign in to participate in this thread!

Eventy

Your banner here too?

phyron phyron Joined 25 Jan 2015

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.