WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] htaccess file disappears and steals the rights (10 posts)

  1. fabian.schmid
    Member
    Posted 6 years ago #

    On my new hoster's server I installed WordPress. But everytime I want to change the WordPress address (URL) and the Blog address (URL), nothing runs anymore, because the permission is denied. My hoster told me, this is because the .htaccess-file changed the permissions. But the .htaccess-file disappears as soon as i upload and install WordPress, so I can't fix it or change it...

    This is the .htaccess-file how it is on my local pc for the installation

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

    Did anyone get the same problem? How did you fix it?
    Thanks a lot...

  2. Samuel B
    moderator
    Posted 6 years ago #

    "On my new hoster's server I installed WordPress. But everytime I want to change the WordPress address (URL) and the Blog address (URL), nothing runs anymore, because the permission is denied"

    Are you moving wordpress? Just changing the url's will break wordpress. The url's must point to where the blog actually is.

  3. fabian.schmid
    Member
    Posted 6 years ago #

    Yes I moved it and changed the url's.

  4. moshu
    Member
    Posted 6 years ago #

    It doesn't really matter what the .htaccess is on your local PC. It has nothing to do with the host.

    On the other hand, if you are using that "Giving WordPress its own directory" thing... the most common mistake people do: they don't read carefully. The instructions always say COPY the files (index and .htacess) - and most users MOVE them.
    Well, copy in my books means you end up with 2 (two) index and htacees, respectively: one in the root, and one in the WP install directory.

  5. Kalessin
    Member
    Posted 6 years ago #

    Further information: Many web servers will automatically hide .htaccess files for security. If your web host has a web-based file manager, try using that to view the .htaccess file. Make sure you select any "Display hidden files" options.

  6. fabian.schmid
    Member
    Posted 6 years ago #

    Hi, thanks... So my web server hides the .htaccess files automatically. The web-based file manager did also not show the file.
    I think I've done everything exactly like written in the instructions...
    But I cannot explain me, why WordPress does work at first and then suddenly doesn't work any longer.

  7. Kalessin
    Member
    Posted 6 years ago #

    If WordPress is the only thing you have running on your site, you should have a copy of the .htaccess file and the index.php file in both your site root directory and your WordPress directory. Don't forget that the index.php in your root directory needs to be edited as in point 9.

  8. fabian.schmid
    Member
    Posted 6 years ago #

    It is not the only thing, but the only thing in this directory. I've got a Mambo installation in /html/mambo and WordPress in /html/schmid. So my domain shouldn't point to my WordPress blog, but my subdomain should. So the index-file of my root directory mustn't contain a require.

  9. Kalessin
    Member
    Posted 6 years ago #

    Okay then... link to your site?

  10. fabian.schmid
    Member
    Posted 6 years ago #

    http://www.youtut.ch/schmid/wordpress was the link, but I deleted the WordPress installation. If I upload it again, I think, it will run for some minutes or hours and break anytime...

Topic Closed

This topic has been closed to new replies.

About this Topic