Support the ongoing development of Laravel.io →
Requests Forms Laravel.io
Last updated 2 years ago.
0

Show your .htaccess file content

0

This is my webconfig file

<rule name="Imported Rule 1" stopProcessing="true">
          <match url="^(.*)/$" ignoreCase="false" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
          </conditions>
          <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
        </rule>
        <rule name="Imported Rule 2" stopProcessing="true">
          <match url="^" ignoreCase="false" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
            <add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
          </conditions>
	  <action type="Rewrite" url="index.php" />
        </rule> 

<rule name="Imported Rule 11" stopProcessing="true">
    <match url="^(.*)/$" ignoreCase="false" />
          <conditions>
            <add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
          </conditions>
          <action type="Redirect" redirectType="Permanent" url="/{R:1}" />
        </rule>
Last updated 9 years ago.
0

RewriteEngine On RewriteRule ^(.*)$ public/$1 [L]

use this in htaccess

0

I guess you probably have already done this, but just to make sure, have you put Laravel Pretty URL config in your apache .htaccess?

Options +FollowSymLinks
RewriteEngine On

RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
0

Sign in to participate in this thread!

Eventy

Your banner here too?

zz123 zz123 Joined 19 Dec 2015

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.