Category : .htaccess

How should .htaccess file for subdomain in Laravel? -sub.mysite.com -mysitefolder -public_html -www My .htaccess <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] # Redirect Trailing Slashes If Not A Folder… RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_URI} (.+)/$ RewriteRule ^ %1 [L,R=301] # Send ..

Read more

I’m deploying my (vuejs + laravel) SPA on VPS server but it dose not work. I was create a new .htacsses and put it into root application folder and the .htacsses in the public folder has been kept intact. <IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{REQUEST_URI} !^public RewriteRule ^(.*)$ public/$1 [L] RewriteCond %{HTTP_HOST} !^www. [NC] RewriteRule ..

Read more

i installed laravel 7 with laravel-admin.org 1.6 6 month ago. then last month i upgrade it to laravel 8 and laravel-admin 1.8 in my local everything is ok but in my server after config https with .htaccess file RewriteCond %{HTTPS} off RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] when i go to /admin after login with my admin ..

Read more

i have install ubuntu 16.04 server and i have lots of laravel project in /var/www/html with numeric folder like below 121744 content app bootstrap config database public resources routes storage tests vendor composer.json composer.lock server.php …. 12877 content app bootstrap config database public resources routes storage tests vendor composer.json composer.lock server.php …. 8798 content app ..

Read more

When I make a request to the routes under /api the server responds with this error: Request exceeded the limit of 10 internal redirects due to probable configuration error. Use ‘LimitInternalRecursion’ to increase the limit if necessary. Use ‘LogLevel debug’ to get a backtrace. My .htaccess in /public folder is this: <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> ..

Read more

I have ap roblem when I check my website using https://www.redirectcheck.com it displays that the redirect is 302 not 301. This is a Laravel project connected to cloudflare with this in root .htaccess <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews </IfModule> RewriteEngine On RewriteCond %{HTTPS} off RewriteCond %{HTTP_HOST} ^www.example.com$ RewriteRule ^(.*) https://example.com/$1 [QSA,L,R=301] # Redirect Trailing ..

Read more

I want to create subdomain from the first parameter of URL and then remove that parameter. Desired result: http://www.example.com/mystore -> http://www.mystore.example.com For this first I have created virtual host for mystore.example.com Now I am trying to remove this mystore parameter from url. I tried below changes in htaccess. Please check. RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} ..

Read more

I have a problem with .htaccess configuration for multiple Laravel projects on my Apache webserver. One project in the root folder and one project in a subfolder File structure (/www) / <– Laravel application #1 /anotherProject <– Laravel application #2 When I’m visiting www.example.com/anotherProject then I get a 404 error (and www.example.com is working. The ..

Read more

I upload my laravel project from localhost to server but to access the app my url is http://myhostexample.com/public/ I want it to be http://myhostexample.com I have modified the public/.htaccess and here it is : <IfModule mod_rewrite.c> <IfModule mod_negotiation.c> Options -MultiViews -Indexes </IfModule> RewriteEngine On # Handle Authorization Header RewriteCond %{HTTP:Authorization} . RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] ..

Read more