• Resolved fabian.schmid

    (@fabianschmid)


    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…

Viewing 9 replies - 1 through 9 (of 9 total)
  • “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.

    Thread Starter fabian.schmid

    (@fabianschmid)

    Yes I moved it and changed the url’s.

    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.

    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.

    Thread Starter fabian.schmid

    (@fabianschmid)

    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.

    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.

    Thread Starter fabian.schmid

    (@fabianschmid)

    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.

    Okay then… link to your site?

    Thread Starter fabian.schmid

    (@fabianschmid)

    https://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…

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘htaccess file disappears and steals the rights’ is closed to new replies.