Jump to content

young_coder

Members
  • Posts

    27
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

young_coder's Achievements

Member

Member (2/5)

0

Reputation

  1. maybe someone will find it useful it can be done by adding following code to the theme's 404.php page <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: ".dirname($_SERVER['REQUEST_URI']).'/'); exit(); ?>
  2. Hello guys, There are some Wordpress plugins for permanent redirection of all 404's to the main blog URL (plugin '404 Redirection') or all 404's to one specified page (plugin '404-to-start'). Also, it can be done by adding following code to the theme's 404.php page. <?php header("HTTP/1.1 301 Moved Permanently"); header("Location: ".get_bloginfo('url')); exit(); ?> I need to redirect all 404's from one directory to index page of that directory. Does anybody know how this can be done? Thank you!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.