Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problemas al recibir parámetros en las rutas #2

Open
jorge-koki opened this issue Aug 17, 2022 · 1 comment
Open

Problemas al recibir parámetros en las rutas #2

jorge-koki opened this issue Aug 17, 2022 · 1 comment

Comments

@jorge-koki
Copy link

Para empezar estoy usan xampp para el entorno local, al enviar una ruta sin parámetros funciona muy bien, pero cuando envio un parámetro, este toma como parámetro el nombre de la carpeta donde esta el proyecto.

git

Realice las configuraciones.
En la carpeta raiz

RewriteEngine on
Options All -Indexes

RewriteCond %{HTTPS} on
RewriteCond %{HTTP_HOST} (www\.)?localhost
RewriteRule (.*) https://%{HTTP_HOST} [L,R=301]

RewriteCond %{REQUEST_URI} !public/
RewriteRule ^(.*) public/$1 [L]

Dentro de la carpeta publica


RewriteEngine On
#Options All -Indexes

# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

# URL Rewrite
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteRule ^(.*)$ index.php?route=/$1 [L,QSA]

y el dominio lo deje así y no funciona.
Route::start("http://localhost", "@");

Y tampoco agregándole la carpeta del proyecto.
Route::start("http://localhost/api-gp-git", "@");

@nicollassilva
Copy link
Owner

Hi @jorge-koki, I didn't understand your issue very well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants