Home
»
Knowledgebase
»
PHP Plugins
»
Wordpress
»
How to make Permalinks work on wordpress in my windows hosting...
How to make Permalinks work on wordpress in my windows hosting...
How to make Permalinks work on wordpress in my windows hosting plan?
Basically, Wordpress Permalink works with our servers' default settings,
provided that the /index.php/ is in the Permalink structure.
If you would like more customizations on Permalinks on Windows environment, please follow the below steps:
Create a page named wp-404.php and place it in within the Wordpress installation root folderThe content of wp-404.php is shown below:
=======================================
<?
$qs = $_SERVER['QUERY_STRING'];
$pos = strrpos($qs, '://');
$pos = strpos($qs, '/', $pos + 4);
$_SERVER['REQUEST_URI'] = substr($qs, $pos);
$_SERVER['PATH_INFO'] = $_SERVER['REQUEST_URI'];
include('index.php');
?>
=======================================
Set the 404 custom error page for the wordpress site to point to wp-404.php via hosting control panel->site admin->set custom error
Set your own custom Permalinks structure in the Wordpress admin section
P.S. By applying this method, the Wordpress site cannot setup another custom error pages for 404 status code, so it is suggested to have Wordpress installed on a domain/sudomain. Install on a subfolder/virtual directory may not work.
Tags:
Permalinks
,
wordpress
,
wordpress Permalink
Add Your Comments
Name:
*
Email Address:
Web Address:
Verification Code:
*
Details
Last Modified:
8/23/2009 7:17 PM
Last Modified By:
Mark
Type:
How to do this?
Article not rated yet.
Article has been viewed 565 times.
Options
Email Article
Print Article
Bookmark Article
Social Bookmarks
Comments RSS
Export As PDF
Powered By InstantKB.NET 2.0.4 © 2009