Hey guys,
I had some trouble when I installed the Envato auto updater. The website seems to be working fine now, except from a problem with the ajax filter I will make a seperate topic for.
Anyway, my question is, am I not supposed to have an .htacces file in the root? I know the file is usually hidden, but when I tried to resolve the former issue I couldn’t find it. I tested it by uploading a manually created one into the root. I can see that one, but it also didn’t ask to overwrite anything.
Yes, my FTP client is already set to show hidden files. I checked a backup from a week ago in Windows Explorer with ‘show hidden files’ checked, but also there I can’t find it. I don’t know what I’m missing. It should be in the root right? Along with the wp- folders etc? Assuming it’s really not there, what do I do?
Well, try looking there with your web hosting “file manager” to make sure it’s NOT there.
But yes, it should be in the same place as the wp-config.php file … usually, anyway.
You can of course simply upload a plain text file and set the write permissions to 775 or 777 depending on your host setup. Then you should be able to go to your WP admin settings and do “save permalinks” … if it saves them then it is writable, if it can’t write there, then change permission on the .htaccess file to 777.
Might also be worth revisiting the “install wordpress” docs on wordpress.org
That is interesting. I have two htacces files. One is in public_html, which is the one that WP Rocket uses to write all their scripts. I have another inside the WordPress folder which only contains, AddHandler application/x-httpd-php56 .php .php5 .php4 .php3. But I don’t think there is a problem.
Your main htaccess file is typically in the same folder as wp-config and same one wordpress writes to when saving permalinks with normal install. Other htaccess files can be used on per folder basis for security and other purposes.
Google what an htaccess file is for more info.
See the wordpress.org install wp info for how htaccess us hsed for wp.
Well, either way, not theme related 🙂
Theme doesn’t affect, manage, update or alter your htacess file for WordPress.
Likely WP Rocket (you might read their docs) does its own rewrite rules and removes the ones that WordPress normally has in your htacess file.
-
This reply was modified 10 years by
simchris.
LOL 🙂
well, that would explain THAT !
Many of us Linux folk “assume” you’re on Apache/Linux.
Ideally, this forum should add a “signature” file indicating the platform you’re using (Win or Nix), version of WP, and version of the theme for support help. But adds a lot of bloat.