This is a bit over my head but could come in handy!

| R F C |

Every other day, I develop new websites from scratch for various clients and sometimes for some of my own projects. Unless the project is really complex, I prefer to develop in CodeIgniter, a super-flexible (MVC) PHP framework which lets me develop super-quick !

It is thus wise to have a standard pattern to follow each time I start a new project. This is what I do –

1. First, the usuals –

2. Making http://www.myProject.com point to MyProjectFolder –

  • Edit the /private/etc/hosts file, add these lines –

# XYZ Project
127.0.0.1 www.MyProject.com
127.0.0.1 MyProject.com

  •  Edit the .htaccess file in Apache DocumentRoot, add these lines –

# for http://www.MyProject.com
RewriteCond %{HTTP_HOST} ^(www\.)?MyProject\.com$ [NC]
RewriteCond %{REQUEST_URI} !^/MyProjectFolder
RewriteRule ^(.*)$ /MyProjectFolder/$1 [L]

2. Navigate into MyProject and,

  • Delete user-guide (un-necessary clutter since it is available online anyway)

View original post 360 more words

Advertisements

About samehramzylabib

See About on https://samehramzylabib.wordpress.com
This entry was posted in Configure My Systems, Working as Developer. Bookmark the permalink.

Comment

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s