Teknikal

January 7, 2012

How to Change Pretty Permalink for Linux and Windows Server

In WordPress, pretty permalink can easily enabled under ‘Settings‘ –> ‘Permalink‘. However if there is an error, you need to reconfim whether the mod_rewrite function has been enabled in the server.

 

You can add the following to your .htaccess file if it is Linux platform.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Extra steps if you do not have .htaccess uploaded:-

1. Open your Notepad and paste the above code

2. Save it as .htaccess and upload to your root directory.

 

You cannot use .htaccess under Windows platform as it will conflict with the IIS.

If you are using  IIS version 6 in Windows server, you can enable pretty permalink via the guidelines below:-

1. Copy and paste the following codes to Notepad and save it as wp-404-handler.php:

<?php
$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’);
?>

2. Go to your IIS and change the custom 404 error page to the destination of your wp-404-handler.php. If it gives you a choice between file and url, choose url.

3. Login to your WordPress and enable the permalinks. You may found under Options > Permalinks.

 

 

Credit to:-

http://www.keyboardface.com/archives/2007/09/07/update-for-wordpress-permalinks-on-iis/







 
 

 
mysql

How to Backup and Restore MySQL Database from PhpMyadmin

Guidelines to backup and restore MySQL database
by admin
0

 
 
windows

Windows Profile Error / Corrupted

Windows cannot load the locally stored profile. Possible causes of this error include insufficient security rights or a corrupt local profile. If this problem persists, contact your network administrator.
by admin
0

 
 
text-html

How to Remove Link Border

When you are adding a link to a picture, sometime there will be a blue line/border in your picture by default.
by admin
0

 

Malaysia Free Job Posting
 
Facebook Lawsuit

How to Create Facebook ‘Like’ Box

Below is the step-by-step guidelines on how to create Facebook ‘Like‘ box, which later you can copy the script and install to your website:- https://developers.facebook.com/docs/reference/plugins/like-box/ If you ar...
by admin
0

 
 
wordpress

WordPress Unable to Login, wp-login.php just refresh

1. Suddenly unable to login Wordpress, although username and password is correct. 2. Login to page wp-login.php and wp-admin, but the page just refresh. 3. Try to re-install the Wordpress but still unable to login. No specifi...
by admin
0

 

 
google apps

Maximizing Google Apps

Google Apps is a service provided by Google, whereby you can use your own domain for Gmail, Google Docs, Google Calendar etc. This services is Free for domain that have less or equal to 10 users.
by admin
0

 
 
phishing

Fraudulent / Phishing Site

What is Fraudulent/Phishing Site and Why is it matters?
by admin
5

 
 
seo

1st Youtube upload – How to Increase Website Traffic / Alexa Rank

This is my 1st Youtube video uploaded. Its about How to Increase Website Traffic / Alexa Rank.
by admin
0

 

 
website jimat

How to Check Domain Whois Records

WHOIS (who is) is a query and response protocol which widely used to check when and by whom a domain was registered, expiry date, IP address, contact information etc. There are allot of website can be use to check WHOIS record...
by jieeba
1

 
 
SEO
seo

10 Quick Tips – How to Increase Website Traffic for Free

This post will provide you 10 quick tips on how you can increase your website traffic for free and easy.
by jieeba
2

 



0 Comments


Be the first to comment!


Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>