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

Can you show your code in http://laravel.io/bin

Last updated 2 years ago.
0

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

Last updated 2 years ago.
0

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.

Last updated 2 years ago.
0

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 :)

Last updated 2 years ago.
0

thank you! the problem was in htaccess

RewriteRule ^(.*)/$ /$1 [L,R=301]

Last updated 2 years ago.
0

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 ;-)

Last updated 2 years ago.
0

Sign in to participate in this thread!

Eventy

Your banner here too?

Fed0t fed0t Joined 10 May 2014

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.