James' Blog

James’ personal blog

You are currently browsing the PHP category.

.htaccess AllowOverride

Was trying to test some rewrite rules with a site. For some reason modrewrite didn’t SEEM to be working. After banging my head against the wall a few times I found out that the
AllowOverride was set to none, where it should have been all.

Posted 1 year, 4 months ago at 12:20 am.

Add a comment

Wordpress admin page

Ever since I installed Wordpress the admin.php page would have trouble loading after the first time logging in. I tried blowing away the database and that seemed to solve the problem, but it happened again. Now I tried to manually redirect myself to wp-admin/index.php and I can now get to my dashboard. Before after signing in, it would just go to a blank screen. I wonder why this is…

Posted 1 year, 4 months ago at 12:19 am.

Add a comment

Accessing domain name but pointing it to your local machine

There’s a simple trick I used to point a www.SomebodysDomain.com to my local machine since I’m doing development. He had hardcoded his domain name into his application which causes problems for when you don’t want to test on the production server.

I just edited my hosts file and added the line in /etc/hosts (OSX)

127.0.0.1 www.SomebodysDomain.com

Posted 1 year, 4 months ago at 12:18 am.

Add a comment