Viewing 15 replies - 16 through 30 (of 57 total)
  • Plugin Author Gunu

    (@grafcom)

    yes, I look from here to see what it does by clean approach.

    Thread Starter sottise

    (@sottise)

    done. (I’ll add an empty index html file, i don’t like this view of the directory)

    Plugin Author Gunu

    (@grafcom)

    popandsoda.com

    so far so good, no more additions no /en and no /fr

    But popandsoda.com/blog/ gives – popandsoda.com/fr/blog/ and the page:

    Not Found
    The requested URL /fr/blog/ was not found on this server.

    Now only place the index.php with adjustment back in the root (not the .htaccess file)

    Thread Starter sottise

    (@sottise)

    ok.
    I’ve placed the original index.php file, which contains :
    require(‘./blog/wp-blog-header.php’);
    (notice the dot before /blog/)

    Plugin Author Gunu

    (@grafcom)

    (notice the dot before /blog/)

    Remove the dot…

    Thread Starter sottise

    (@sottise)

    dot removed:
    require(‘/blog/wp-blog-header.php’);

    Plugin Author Gunu

    (@grafcom)

    is there another file called index?

    Thread Starter sottise

    (@sottise)

    yes, empty index.html that I have just added (otherwise anyone can access the directory)

    Thread Starter sottise

    (@sottise)

    Oops! Just removed the html index, sorry…

    Plugin Author Gunu

    (@grafcom)

    please rename this to index-old.html, on your server this file is given priority

    Thread Starter sottise

    (@sottise)

    I’ve removed the html index actually…

    Thread Starter sottise

    (@sottise)

    Do I replace the html index back and rename it?

    Plugin Author Gunu

    (@grafcom)

    index.php is there with this?

    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require( dirname( __FILE__ ) . '/blog/wp-blog-header.php' );

    I get a white screen.

    Thread Starter sottise

    (@sottise)

    yes, without the dot :

    <?php
    /**
     * Front to the WordPress application. This file doesn't do anything, but loads
     * wp-blog-header.php which does and tells WordPress to load the theme.
     *
     * @package WordPress
     */
    
    /**
     * Tells WordPress to load the WordPress theme and output it.
     *
     * @var bool
     */
    define('WP_USE_THEMES', true);
    
    /** Loads the WordPress Environment and Template */
    require('/blog/wp-blog-header.php');

    Now I’m wondering if the ‘<?php’ is needed?

    Thread Starter sottise

    (@sottise)

    aaaah, the require is different!

Viewing 15 replies - 16 through 30 (of 57 total)
  • The topic ‘Can't access to the admin anymore’ is closed to new replies.