0
|
Hi BulletTimeGuide, After quite a bit of debugging, I believe we finally figured out what was causing the issue with /index.php automatically being added to your URLs, and a 404 resulting instead of a 403. The code doing this was somewhere within your public_html/.htaccess file. We proved this as when we disabled this file, the issue resolved itself. After narrowing down which file was causing the issue, we ultimately came to the following resolution (which you can see in your public_html/.htaccess file) This was the problematic line of code: RedirectMatch 301 (.*)\.html$ http://www.bullettimeguide.com$1.php We couldn't find much information online regarding RedirectMatch, so we modified the code to instead use RewriteRule. The new line of code is: RewriteRule ^(.*)\.html http://www.bullettimeguide.com/$1\.php [R=301,L] ... and the ultimate change you'll see is: # This is the original line of code # RedirectMatch 301 (.*)\.html$ http://www.bullettimeguide.com$1.php # This is the updated code RewriteRule ^(.*)\.html http://www.bullettimeguide.com/$1\.php [R=301,L] Please be sure to test your website and let us know if you see any other issues. We had to clear our browser's cache throughout the testing, so you may need to do as well. Thanks, - Brad |
0
|
Hello BulletTimeGuide, Great question about hiding file extensions. You could try using the MultiViews directive in .htaccess like, this, but since some of your files are in directories with the same name as the files, I'm not sure if this would work correctly. You can certainly try it to see if you get the results you are looking for. Here is the code to place in your .htaccess file (make a backup of your current .htaccess file first before replacing that code with the following). RewriteEngine on Options +MultiViews The other option is to use the following in your .htacess file: RewriteEngine on RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php Please let us know if you have any additional questions or need further assistance. Regards, Christi N. |
Email: | support@WebHostingHub.com | Ticket: | Submit a Support Ticket |
---|---|---|---|
Call: | 757-416-6627 | Chat: | Click To Chat Now |