• Jennym55

    (@jennym55)


    This is very strange.

    I’ve just installed wp 4.2.2. through softaculous on a new webhost account.

    Everytime I attach a hyperlink to words, then clicking the update, it returns a 404 error.

    Don’t think permalinks is the problem, I’ve tested them all.

    BTW I don’t see a .htaccess file.

    Any help would be great, thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • Thread Starter Jennym55

    (@jennym55)

    Have deleted the softaculous install, including the database.

    Have done an install using 4.2.2 from this site. Ran the install… all works well, except when I add a hyperlink.

    I’ve heard from my hosting company, they suggested

    Temporarily, try disabling the .htaccess file in your public_html directory. It sounds like it is interfering with the .htaccess settings in the subdirectories hosting each of these addon websites.

    So I’m not sure what is happening – wondering anyone has had this experience?

    The most common cause for this is indeed permalinks — often it pays to change them, save, change them back, and save again (which would rewrite the .htaccess file).

    A good second is the fact that the Apache rewrite module is not enabled on the server, but that’s something only the hosting company can help you with.

    Thread Starter Jennym55

    (@jennym55)

    Thanks Mark, I’ve toggled the permalinks several times, without success.

    I’m going to ask the hosting company about your second suggestion. They have confirmed that there is no .htaccess files in wp, and neither in the public_html directory.

    Oh, there isn’t one at all? There definitely should be in order to make this work. And if it’s not there, it should be created on the fly right when you change (and save) permalinks.

    Surely a bit fishy.

    Thread Starter Jennym55

    (@jennym55)

    I found an old .htaccess file from the previous version, it still didn’t work.

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /dir/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /dir/index.php [L]
    </IfModule>
    
    # END WordPress

    dir is the directory where I’ve the wp installation.

    Thread Starter Jennym55

    (@jennym55)

    Fixed!

    I don’t know if the webhost changed a few things his side, but he suggestion adding

    <IfModule mod_security.c>
    SecFilterEngine Off
    SecFilterScanPOST Off
    </IfModule>

    to the .htaccess in the public_html/

    It turns out there wasn’t a .htaccess file there, so I created one, and added the code. I changed the chmod to 444 and it all looks dandy!

    Thanks Mark for your help….

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘404 pages when I hyperlink text’ is closed to new replies.