i dont create any code. i just upload my folder in /public/
/public/proceduralphp
and i check the documentation http://laravel.com/docs/routing
but there is nothing about folders
You would do exactly that... http://yourdomain.com/proceduralphp.
I'm not sure I understand your question.
What are the errors you are getting?
The public folder is the top level.
Hey,
The public folder is for things you'd be happy for anyone to be able to grab off the net.. so CSS and JS files, Images, that sort of thing.
Going off the name of the folder (proceduralphp) is sounds like you might have code that you want to reuse? If that's the case I would add a new folder under 'app' and add the path to it to my composer.json file in the "autoload" section, something like:
"autoload": {
"classmap": [
"app/commands",
"app/controllers",
"app/models",
"app/database/migrations",
"app/database/seeds",
"app/tests/TestCase.php",
],
"files":[
"app/proceduralphp/some_file_i_want.php"
]
},
There's probably a few other ways that you could do it too, as ever.
Hope that helps :)
thank you! the problem was in htaccess
RewriteRule ^(.*)/$ /$1 [L,R=301]
Exactly.
Laravel takes everything behind the domain without a file extension as a route and tries to interpret it.
To exclude certain paths from the Laravel router, you can put
...
RewriteEngine On
# Exceptions...
RewriteCond %{REQUEST_URI} !^/proceduralphp
...
into the .htaccess so it gets ignored and not routed through Laravel.
You can mark the topic as closed ;-)
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community