WordPress Development Asked by user2007920 on November 23, 2021
I am looking to upload a htaccess file or amend the existing htaccess, assuming there is one being used by WordPress.
All i want to achieve is denying access to my WordPress site and allow specific IPs. I know how to do this and already achieve this elsewhere but haven’t done this type of config on WordPress
I bought my Word press hosting through WordPress and i connect the SFTP to the details they provide. And it appear to be connecting to the htdocs directory where normally i expect to put the htaccess file. However putting the htaccess here does not work. It doesnt do anything.
I did read that WordPress has to create the htaccess file
WordPress automatically generates .htaccess file because it is required to properly redirect permalinks. If your .htaccess file is missing, then the first thing you need to do is to visit Settings » Permalinks page and click on ‘Save Changes’ button without changing anything.
This doesn’t appear to work or i am not seeing the root of my site.
my htdocs:
What am i missing here?
Thanks
If this question refers to Wordpress.com then your question should be asked of their support rather than here.
In general though... just a thought...,
htaccess files are hidden files so the file name is preceded with a dot/period, ie. '.htaccess'.
If you are using an FTP/SFTP client, they sometimes do not show hidden files by default, so you need to enable that setting in order to see hidden files?
Wordpress doesn't need to create its own htaccess file but it does need specific content within it, which is what resetting Permalinks does. For self-hosted Wordpress sites, the required content can be found here:
Answered by t2pe on November 23, 2021
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP