Wordpress Pretty Permalinks on a Shared Server


/ Published in: PHP
Save to your folder(s)

Create a custom 404 handler page which redirects you to the correct page.


Copy this code and paste it in your HTML
  1. <!-- Create the file wp-404-handler.php in your base Wordpress folder. -->
  2.  
  3. <?php
  4. $_SERVER['REQUEST_URI'] = substr($_SERVER['QUERY_STRING'], strpos($_SERVER['QUERY_STRING'], ':80')+3);
  5. $_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
  6. include('index.php');
  7. ?>

URL: http://it.megocollector.com/?p=795

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.