Change your Permalinks in WordPress without using .htaccess

January 29th, 2009 by bodhi.zazen

I struggled with updating my Permalinks. When I changed them the whole site went 404. UGLY ….

In solving the problem I found a few awesome links :

Dean Lee’s plugin in particular was very nice (thank you Dean Lee !!).

BUT ….

After changing the permalinks, my whole site continued to 404

I found the solution HERE

The problem was I do not have .htaccess (AllowOverride option) enabled.

From there the solution was easy, rather then using a .htaccess file add a to your Apache config file.

The general format is :

<Directory /var/www/blog.bodhizazen.net>
#Notice the FULL PATH to the site root directory
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</Directory>

Hint: If you do not know what to add , look at the contents of the .htaccess file that Wordpress automatically generates.

With this “simple” edit I can not change my permalinks without 404′ing me blog – w00t !!!

I hope this helps as all the Wordpress Documentation I found keept referring to the .htaccess file (which of course was not helping me).

StumbleUpon

Posted in Linux

8 Comments »

  1. WOOT! I am glad you figured it out man! I’m sorry I couldnt help you out much, its just been too long of not using wordpress for me. I guess I need to get off my lazy ass and fire up another home brew wordpress site.

    Comment by robbmunson — January 29, 2009 @ 12:37 am

  2. [...] Read more: Shadows of epiphany » Blog Archive » Change your Permalinks in … [...]

    Pingback by Shadows of epiphany » Blog Archive » Change your Permalinks in … — January 29, 2009 @ 8:23 am

  3. hehe .htaccess has the same syntax as the httpd.conf. But most people that are running wordpress don’t have their own installations/servers so they give the .htaccess solution since it is the mostly widely available fix.

    Glad you found the solution and it wasn’t that complicated.

    Comment by drubin — January 29, 2009 @ 10:45 am

  4. Hi.
    My webshost yahoo does not allow to create .htaccess file.
    Whats the solution to change permalink then?

    Comment by MFadvisor — May 31, 2009 @ 1:38 am

  5. MFadvisor : You are kind of stuck then. You need to either have access to .htaccess or the apache config file.

    Can you upload a .htaccess ?

    Comment by bodhi.zazen — May 31, 2009 @ 10:25 am

  6. I have the similar issue. I’m using Yahoo! as webhosting and today I had a talk w/them, they said, they don’t allow using/ uploading .htaccess file and can not enable mod_rewrite for me in httpd.conf file. I spent couple days to figure out why the permalinks are not working and what can I do. I’m still stuck up in this. I’ve already tried the pretty permalinks which includes index.php in the url, I want to avoid that.

    Any help would be really appreciated. Thanks in advance.

    Comment by Him — June 12, 2009 @ 8:46 am

  7. @Him:

    To be honest I know of no other solution and suggest you change hosting.

    Comment by bodhi.zazen — June 12, 2009 @ 10:25 am

  8. Hi, thanks for replying but I’m helpless I can not change my hosting provider. I need to still find any other option if available.

    The strange thing is, I have 2 blogs running on the Yahoo! web servers, one is recently upgraded from 2.3 to 2.7.1 and it works fine w/the permalinks (although I installed couple plugins for that and it was a real pain while upgrading), but the new WP 2.7.1 installation doesn’t support the permalinks on the same server. Any hint what should I check?

    ~HIM

    Comment by Him — June 15, 2009 @ 7:59 am

RSS feed for comments on this post. TrackBack URL

Leave a comment