-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove unnecessary code from .htaccess file
- Loading branch information
Showing
1 changed file
with
0 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,5 @@ | ||
ErrorDocument 404 /404.html | ||
|
||
<Files "contact.php"> | ||
# Ensure that the PHP file is being handled by the PHP handler, this is usually the default | ||
SetHandler application/x-httpd-php | ||
|
||
# Optionally, ensure that the PHP file can only be accessed via your website's form | ||
Order Deny,Allow # Deny all, then allow from specific domain | ||
Deny from all # Deny all | ||
Allow from codebyjose.com # Allow from specific domain | ||
</Files> | ||
|
||
# If using mod_rewrite to rewrite URLs, ensure it's not interfering with access to contact.php | ||
<IfModule mod_rewrite.c> | ||
RewriteEngine On | ||
# Exclude contact.php from being rewritten | ||
RewriteCond %{REQUEST_FILENAME} !-f # If the request is not for a file | ||
RewriteCond %{REQUEST_FILENAME} !-d # If the request is not for a directory | ||
RewriteCond %{REQUEST_URI} !^/contact\.php$ # If the request is not for contact.php | ||
</IfModule> |