Start the rewrite engine
RewriteEngine On
RewriteBase /
Disable Indexing
Options -Indexes
Remove PHP extension
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule ^(.+?)/?$ $1.php
Deny Access to Database File
<FilesMatch “database.txt”>
Order allow,deny
Deny from all
So, i must copy all of this into .htacces file?
i know open it and edit the file `
edit your .htacess file same as above image
Here is my .htacces content:
# Start the rewrite engine
RewriteEngine On
RewriteBase /
# Disable Indexing
Options -Indexes
# Remove PHP extension
RewriteCond %{REQUEST_FILENAME}\.php -f
RewriteRule ^(.+?)/?$ $1.php
# Deny Access to Database File
<FilesMatch "database\.txt">
Order allow,deny
Deny from all
</FilesMatch>
then make sure your hosting provider server’s uptime is better. because may be the problem is occuring because your server goes down.
Ok i know where is the problem
I DISABLED PHP
1 Like
system
(system)
Closed
#31
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.