0
Hello, my system has two panels. One Admin without any optimization in SEO, another user, where he can post articles and more. It turns out that I use a query to search the folder and returns the requested file through the url.
It turns out my front system is optimized, so . php file terminations have been removed for SEO. Making the URL below unusable
Example:
meusite.com/user/Dashboard.php? get=articles/create
note that Dashboard.php does the request of the articles folder and the file create within it, but returns 404. Now let’s assume that I change "?" by & and remove . php from the URL the file is returned correctly. Thus:
meusite.com/usuario/dashboard&get=articles/create
This is not recommended, so how to proceed? Thanks for the help.
About the script that removes . php is a general function, so there is no folder check or something like that.
it’s not better this way:
meusite.com/usuario/dashboard?get=artigos/criar
ormeusite.com/usuario/dashboard/artigos/criar
?– Guilherme Nascimento
This way it does not take the query, because the absence of the . php in the URL
– user5004
You spoke url friendly, assume you would use . htaccess, if using . htaccess is possible.
– Guilherme Nascimento