htacces file

Posted in: Newspaper
Post count: 111

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.

Post count: 9544

Set your ftp software to show invisible or “.” files.

Yes, WordPress needs a .htaccess file in root folder to be able to set the permalinks/structure.

You also need it to optimize your caching,time to live, etc.

  • This reply was modified 10 years by simchris.
Post count: 111

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?

Post count: 9544

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

Post count: 84

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.

Post count: 9544

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.

Post count: 84

I don’t know how I found myself with two! But WP Rocket is using the one outside the wordpress folder to write all the stuff to cache my site. But both contain the same line: AddHandler application/x-httpd-php56 .php .php5 .php4 .php3.

That is all I know!

Post count: 9544

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.
Post count: 111

So it turns out it’s because my website is on a Windows server and then you have a web.config instead of a .htacces. Doh! 🙂

Post count: 9544

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.

Viewing 10 posts - 1 through 10 (of 10 total)
The forum ‘Newspaper’ is closed to new topics and replies.