I need help.
I upload laravel folders as follow
in env file
app url is
APP_URL=http://learnerschool.epizy.com
when I enter url , 403 forbidden
I need help to solve it.
I need help.
I upload laravel folders as follow
APP_URL=http://learnerschool.epizy.com
when I enter url , 403 forbidden
I need help to solve it.
We are going to need a lot more info than that.
Can you try re-installing?
The site http://learnerschool.epizy.com/public/ seems to be working fine from here.
Where do you see the 403 Forbidden error?
this is because I edit in htacess , but problem still remian.
if click to url link http://learnerschool.epizy.com , go to directory listing as follow
this is not as my expect, no client will enter as http://learnerschool.epizy.com/public/
So how can edit htacess file
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ public/index.php [L,QSA]
Go to htdocs/
folder, create .htaccess
if not there already, then paste your code. If it is already there, right-click on the file and click on the edit button and paster your code. Don’t forget to save the file ha .
hello bro , I aready edit htacess but redirect to directory listing occur , how can solve it
here my htacess
php_value display_errors On
php_value mbstring.http_input auto
php_value date.timezone America/New_York
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ public/index.php [L,QSA]
</IfModule>
I think you can fix this with PHP. you can remove the htaccess if you wish, create an index.php file and paste this…
<?php
header("Location: /public")
?>
If you want to use htaccess, do this:
Redirect 301 / https://learnerschool.epizy.com/public
Or create an index.php file:
<?
header('Location: /public');
?>
when I make index.php file in root folder , can redirect to url link directly but problem is
no css features from public folders
can you share the pic of your file manager? (inside htdocs)
You can use the htaccess provided by @Greenreader9.
Delete the index.php file before though
new htacess file create and insert this code?
as follow
php_value display_errors On
php_value mbstring.http_input auto
php_value date.timezone America/New_York
Redirect 301 / https://learnerschool.epizy.com/public
Yep! Delete the index.php file then. If .htaccess already exists, delete that also!
Redirect 301 / /public
Try this?
Redirect 301 / http://learnerschool.epizy.com/public
Use this, just removed the https
. Because your app URL is http
same problem bro. not ok
Follow any of the two options: