In this article we will learn about some of the frequently asked TypeScript programming questions in technical like “remove index.php laravel in linux server” Code Answer. When creating scripts and web applications, error handling is an important part. If your code lacks error checking code, your program may look very unprofessional and you may be open to security risks. Error or stack handling on typescript was simple and easy. An error message with filename, line number and a message describing the error is sent to the browser. This tutorial contains some of the most common error checking methods in Typescript. Below are some solution about “remove index.php laravel in linux server” Code Answer.
remove index.php laravel in linux server
xxxxxxxxxx
1
Inside /etc/apache2/apache2.conf Replace
2
3
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride None Require all granted
4
to
5
<Directory /var/www/> Options Indexes FollowSymLinks AllowOverride All Require all granted
6
7
and
8
9
<Directory /usr/share> AllowOverride None Require all granted
10
to
11
<Directory /usr/share> AllowOverride All Require all granted
12
13
Run these commands
14
15
sudo a2enmod rewrite
16
sudo service apache2 restart
17
18
Inside your .htaccess file
19
20
DirectoryIndex index.php
21
22
<IfModule mod_rewrite.c>
23
<IfModule mod_negotiation.c>
24
Options -MultiViews
25
</IfModule>
26
27
RewriteEngine On
28
29
RewriteCond %{REQUEST_URI}::$1 ^(/.+)/(.*)::2$
30
RewriteRule ^(.*) - [E=BASE:%1]
31
32
RewriteCond %{ENV:REDIRECT_STATUS} ^$
33
RewriteRule ^index.php(/(.*)|$) %{ENV:BASE}/$2 [R=301,L]
34
35
RewriteCond %{REQUEST_FILENAME} -f
36
RewriteRule .? - [L]
37
38
RewriteRule .? %{ENV:BASE}/index.php [L]
39
40
</IfModule>