I have researched until my brain hurts numerous times. Removing the extension in the browser should rather be an easy rewrite rule. I have found four different ways and yet again, none of them are working.
Granted, the current site is hosted on godaddy, however I have used one of these methods before on this same hosting and it has worked before, however only some of the time?
Yes it is an Apache server. Yes mod_rewrite is enabled. Yes I am removing the extension in the href links.
First and most common method I believe, not working:
And lastly, I think is the correct way since it actually rewrites the link appending the extension, however still failing (this is the method that has worked before):
I have the .htaccess file at the root level, for this site.
However, this site is in a sub-directory of a shared hosting account with a separate domain directing to this sub-directory. I know the .htaccess file will only affect what is at the same or within that level.
Granted, the current site is hosted on godaddy, however I have used one of these methods before on this same hosting and it has worked before, however only some of the time?
Yes it is an Apache server.
Yes mod_rewrite is enabled.
Yes I am removing the extension in the href links.
First and most common method I believe, not working:
Second method with a failed attempt:
Third way which is failing:
And lastly, I think is the correct way since it actually rewrites the link appending the extension, however still failing (this is the method that has worked before):
Any help greatly appreciated...
However, this site is in a sub-directory of a shared hosting account with a separate domain directing to this sub-directory. I know the .htaccess file will only affect what is at the same or within that level.
If not, take a screenshot of your file structure.