finally: migrated!

I finally had the time and chance to migrate the site to a new server, whew. Had a few quirks along the way(it happens you know), one is permalinks was bugging me. I realized then that I missed transferring the .htaccess file which contains the following lines:

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

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress

After the changes were done, restarted apache but the same thing was still happening lexapro generic. 404 not found on friendly url links. Something might be wrong, there must be a misconfiguration somewhere in wordpress or apache itself. My suspicion was .htaccess wasn’t being read. I researched info on how to make apache read .htaccess files and found out that I needed to make changes to the following snippet:

<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>

To this:

<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>

Reloaded apache and the permalinks were all working again. 1 point for the geek who knows how to google.

The 2nd issue I encountered was the sql dump file I got from the old site, restoring it didn’t require much work. But when I was viewing my site I kept on seeing npc’s (non-printable chars), the char  to be specific. I tried using dos2unix to convert the dump file hoping the said characters would get remove to no avail. Tried unix2dos too, duh, same thing. Finally, just vi’d it and removed those chars with :%s/Â//g. w00t. Another point for that geek who spends so much time in front of his pc.

What’s next on the todo list? I got some stuff that I should be really posting, it’s just that I’ve never been really excellent in documenting what I do. Somehow I still try to overcome that and somehow sometimes I prevail lol.

Good times.

This entry was posted in Uncategorized and tagged . Bookmark the permalink.

Leave a Reply

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

Security Code:

This site uses Akismet to reduce spam. Learn how your comment data is processed.