I am trying to implement friendly URLs on my website, however whenever I use "/" to separate the second argument it works and sends normally but the site doesn't load images and becomes misconfigured. Below is the .htaccess file. I want the images to load normally with one argument I can do it perfectly.
.htacess
RewriteEngine on
# If we receive a forwarded http request from a proxy...
#RewriteCond %{HTTP:X-Forwarded-Proto} =http [OR]
# ...or just a plain old http request directly from the client
#RewriteCond %{HTTP:X-Forwarded-Proto} =""
#RewriteCond %{HTTPS} !=on
# Redirect to https version
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
#RewriteCond %{HTTPS} off
#RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# Acesso http redirecionado para https
#RewriteCond %{HTTPS} off
#RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
#RewriteCond %{HTTPS} !=on
#RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_URI} !(.*)/$
RewriteRule ^(.*)$ %{REQUEST_URI}/ [R=301,L]
RewriteRule ^([a-z0-9-]+)/([0-9]+)/?$ index.php?id=$1&nome=$2 [NC]
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/6PyzUDQ
via IFTTT
Aucun commentaire:
Enregistrer un commentaire