...despite everything, I am able to use a code for rewriting from the "non-www" to the "www" version of my URL. Only the .htm removal is not working. So the .htaccess is actually working/nothing blocks it. But this time the .htaccess is not in the public_html root, where files are, but above all folders.
DeathShadow: I tried the 1st code that you gave me, but it gave me a 404 error upon reloading the same pages. A simple refresh gave me 404... The other codes seem to complex. I think I should try and see whether there is some Cpanel setting or other script (?) blocking it... But where?
If it's doing 404 from that, you probably didn't put the index.php and the .htaccess in the same directory, attempting a matching path in the URL.
I have an all .htm site. That site is all .htm. I got mixed up! I don't know anything about Apache coding and I only used .htaccess a coupple of times about 1-2 years ago. Meanwhile I tried this and it worked partially: RewriteEngine on RewriteBase / RewriteCond %{REQUEST_fileNAME} !-d RewriteCond %{REQUEST_fileNAME} !-f RewriteRule ^(([^/]+/)*[^./]+)$ /$1.htm [L] The only thing this managed to do was to make it work without the .htm as well, but by standard it still appears with .htm at the end (annoying!). Now if I type in with- or without, it works. But by browsing through the pages, all appear with .htm. I just want the .htm to disappear...
Thats happening because your <a href="some_link.htm"> tags are pointing the user some_link.htm, browser just does what you ask him to do in that <A> tag. Remove the .htm extension from all <a> tags.
If Mr.Dog is talking about his Spark Junction site (see sig) he appears to have multiple folders containing index.htm which he is point to within his sites menus and footer links, as for stories again he appears to linking story_name.htm He needs to remove index.htm from his menu and footer links and use the htaccess code for others, appending his links without .htm Ideally someone should offer 5mins to fix his site... this is page 3 of this thread OT @edduvs nice to see you back did you enjoy your ban break ?
@MrDog, please mail me with some FTP access and I'll fix your issues. @MyVodafone, frankly I have no clue what that ban was for, some duplicate thread (I didn't make any thread lately though), but whatever.