• Hi!

    I need to configure the parameters below for a SEO friendly WordPress blog.

    cgi.fix_pathinfo = 1
    cgi.force_redirect = 0

    I’ve created a php.ini in my account which is in a shared environment. It all works OK until I had to use disable them due to other php installations.

    Basically I need to use ini_set php function within WordPress to be able to have my SEO friendly URLs.

    I tried the code below in the following files (one at a time): wp_config.php, wp_settings.php, index.php with no success.

    ini_set(“cgi.fix_pathinfo”, “1”);
    ini_set(“cgi.force_redirect”, “0”);

    I’d appreciate any ideas or tips about this.

    Cheers,

    Martin

  • The topic ‘php.ini and ini_set in a shared environment’ is closed to new replies.