GreySquare Blog
Technology Sans Legality

Pretty URL’s in Wordpress for Netfirms

Posted at 3:14 am on Thursday, October 25th, 2007 | Posted in Tech

I was literally banging my head since a week about my wordpress blog installation. I installed a fresh version of wordpress deleting my previous one thinking it might be faulty. But the Pretty Urls function of the permalink simply did not work for me. Suddenly it hit upon me that something might actually be wrong with my hosting provider. So I googled for “Netfirms wordpress permalinks”. And there were literally hundreds of resources waiting for me to rectify the problem. Even a friend of mine had the same problem. But getting them to work on my latest wordpress(2.3) took me a while since I had to go through all the updates. So here’s an updated version.

Pre-Requisites: Things You Need for the Hack to Work

  • Wordpress 2.3
  • PHP 4 (Check this in Netfirms Control Panel)
  • Enable .htaccess in your Netfirms Control Panel.
  • Pretty URL’s Permalink Structure: Date and name based. I tested it only for this type of permalink structure. But theoretically it should work for all structures.

Wordpress 2.3 Guide to Pretty URL’s for Netfirms:

  • Download Disable Canonical URL Redirection plugin, upload it to your wp-content/plugins directory and install it.
  • Change the Permalink Structure and press Update Permalink Structure.
  • Download your .htaccess file from your blog base directory.
  • The file contents should be as given below:
    # BEGIN WordPress
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_URI} !index.php
    RewriteRule (.*) index.php/$1 [L]

    # END WordPress
  • Change the RewriteBase to the base directory of your blog.
  • Save and Upload the .htaccess file to the base directory of your blog.
  • Change the permissions of the blog to 444.

That should do it! You will have the permalinks working like a charm.
Here are some question you might ask and these are the resources I found when I had my problem. This blog wouldn’t be running if not for these.

Edit: The step 1 of the guide, Disable Canonical URL’s plugin, causes header return errors when editing posts and while using wp-admin. You can do the following instead of step 1 of the guide.

  • Edit wp-includes/canonical.php file.
  • Find the last line add_action('template_redirect', 'redirect_canonical'); and comment it out.
  • Now it should look like this: //add_action('template_redirect', 'redirect_canonical');
  • Save the file.
  • All other steps are the same.

Trackback URL for this post: http://greysquare.org/blog/2007/10/25/pretty-urls-in-wordpress-for-netfirms/trackback/

5 Responses

  1. Wordpress Upgrade | GreySquare Blog

    [...] Note: to users on netfirms hosting who have previously used the Pretty URL’s in Wordpress for Netfirms post to correct their permalink problem should again access their wp-includes/canonical.php and [...]

  2. sergio

    Do you have to apply the 444 fo the whole folder of the blog? I just did it to the .htaccess (because the system tried to change it on its own) and after some days running smoothly, it has stopped working and nothing that I’ve done has worked — finally I’ve returned to the 2.01 version that netfirms auto-installs.

  3. how to make money fast

    Men often make up in wrath what they want in reason.

  4. Share

    And you do not accidentally from Moscow?

  5. whiten teeth

    hey great site very nice post will visit again

Leave a Comment

Please note: Comment moderation is enabled and may delay your comment. There is no need to resubmit your comment.