• rockydavidson

    (@rockydavidson)


    I am having memory problems and have seen mentions of the .htaccess file. I have been unable to find such a file. Can anyone help me?

Viewing 12 replies - 1 through 12 (of 12 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    It will be in the root folder of your WordPress installation. If it’s not there, then you have not created it yet or have not switched to pretty Permalinks.

    Thread Starter rockydavidson

    (@rockydavidson)

    I guess you are talking about where the wp-logins and other php files are. I do not have one. So how do I get one?

    Thread Starter rockydavidson

    (@rockydavidson)

    My memory problems began after I upgraded to 2.1.1. My problem is that my website host, Atlantic.net will not go beyond 8 meg of php memory. It looks like I need more than 8. I saw some mention of changing some code in the .htaccess file. If i don’t have such a file, it may be mute. Any ideas on a host who will go above this would be appreciated. This is for a boy scout website. https://www.troop170macon.org

    boiler

    (@boiler)

    To ‘get a .htaccess file’ you can create one in your root directory. As Otto42 says one will be created for you if you enable the permalinks options.

    Why do you state you have a memory problem? – what is the issue you are experiencing?

    Thread Starter rockydavidson

    (@rockydavidson)

    I am getting this kind of message

    Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 184320 bytes) in /home/t/r/troop170macon.org/html/wp-admin/upgrade-schema.php on line 100

    Thread Starter rockydavidson

    (@rockydavidson)

    I went to Options permalink and clicked update Permalink Structure. A message then popped up “You should update your .htaccess now.” I still don’t have a file though. Do you enable it somewhere else?

    The error above was when I tried to activate a plugin.

    boiler

    (@boiler)

    If WordPress has permissions to write to your server it will create a .htaccess file in the root directory – often called public_html but it looks like it is called /home/t/r/troop170macon.org/html/ on your server.

    If it cannot write to the server you could create an empty .htaccess file in that directory for it to use (I am assuming that you can access the file system in your hosting environment).

    Thread Starter rockydavidson

    (@rockydavidson)

    I just created an htaccess file and then my whole site stopped working

    Thread Starter rockydavidson

    (@rockydavidson)

    The message is
    Forbidden
    You don’t have permission to access / on this server.

    Thread Starter rockydavidson

    (@rockydavidson)

    I have permissions at 777

    Thread Starter rockydavidson

    (@rockydavidson)

    “You don’t have permission to access /on this server.” I have put in a request to the host to see if they are preventing my access using the .htaccess file

    I had the exact same problem. I finally found a solution here.

    Specifically, that site says:
    “If Apache is anything less than version 2.0 OR you host does not use Apache, then you only have one choice for permalinks.: /index.php/ needs to be included as part of the permalink structure.

    Example:
    https://www.yoursite.com/index.php/this-is-what-i-think. “

    Since my “Forbidden” message said Apache/1.3.29 , that’s what I did.

    I did the following:
    — delete .htaccess

    — Go to the permalink tag in the options section of WordPress, then first clicking the radio button for the “date and name based”. This automatically filled in the field next for Custom. Manually edited that field and inserted /index.php/ so that it now reads:

    /index.php/%year%/%monthnum%/%day%/%postname%/

    Click radio button for Custom.

    — Click Update Permalink Structure.

    It then still said I should now update the .htaccess, but I just ignored this.

    Seems to work. Of course, URLs are more unwieldy with the /index.php/ but nothing else worked for me.

    m.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Where is the .htaccess file located?’ is closed to new replies.