Phoenix Computer Repair and Onsite Business IT Support for Phoenix, Arizona | Affordable Solutions You Can Trust
 
 
 

Expert Computer Repair and Onsite IT Support in Phoenix, Arizona

Business Technology News and Innovations


RSS feed for my PC Techs news  RSS Feeds: Entries (RSS) and Comments (RSS)

Pages

About Tech Club
Log in

Have you upgraded to Windows 7?

View Results

Loading ... Loading ...

Posts Tagged ‘html’

Setting a default page for a parked domain using .htaccess on a server with multiple domains

Friday, September 3rd, 2010

There seem to be plenty of help articles that talk about ways you can set the default web page for a domain using .htaccess. Most of these articles assume that you are hosting a single domain on a single host. What I am going to tell you is how to do the same thing when you are hosting multiple parked domains on the same host and need one domain to point to a different default page than the others.

We will be using the .htaccess file for this purpose. If you don’t know where to find it, look in your public_html (”root”) html folder. If the file doesn’t exist, you’ll need to create it using plain text and name it .htaccess

In this .htaccess file you may already have a setting that looks similar to this:
DirectoryIndex index.php default.php

This setting controls the pages that your parked domains will all look for by default. For example, when visiting http://www.mypctechs.com, if the above setting was in my .htaccess file, the server would deliver index.php first and default.php if that didn’t exist.

Because you are trying to get a parked domain to visit a different page than the two shown above, you’ll need to add some additional commands in your .htaccess file ABOVE the DirectoryIndex page. Otherwise the server will process the DirectoryIndex directive and your commands later in the file will never be executed.

Start at the top of your .htaccess file and add the following lines:

RewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?thenameofyourdomain.com$
RewriteRule ^(/)?$ newdefaultpage.php [L]

Change thenameofyourdomain to the domain that you’d like to set a new default page for. Change newdefaultpage.php to the name of the page that you’d like as default.

Doing this will preserve your standard default.php and index.php for all other domains, while giving your new domain a different default landing page. Upload your new .htaccess file to the server and enjoy!

NOTE: Be very careful when editing your .htaccess file and always make a backup copy of the file before you change it. If you notice any problems with your site after the changes you can always revert back.


>> Did you like this article? Ping it!

 

Web Design Job Available

Sunday, December 27th, 2009

I am looking to build a solid, long-term relationship with a local designer. We have many projects available on a part-time contract basis with a potential to grow your role into a full-time position.

Requirements:
A minimum of 5 years hands-on design experience
Proven experience and portfolio of website design, CSS, FLASH, HTML, etc. (Portfolio will be requested)
Communication skills to effectively understand project scope and client needs is critical
Ability to design a company brand from logo to website to printed materials A+
Ability to work with multiple Photoshop layers critical
Originality in design preferred

Send your resume in Word or PDF. Please DO NOT bother to apply for this position without at least 5 years of verifiable design experience. Qualified applicants will be contacted for a follow-up interview. Send resume to jobs@mypctechs.com.

Position only available to applicants from Arizona who can meet with me face to face on a regular basis. Do NOT respond if you are not in the Arizona area – your information WILL be discarded.

 

>> Did you like this article? Ping it!

 


Visit the my PC Techs profile on LinkedINFollow my PC Techs on TwitterLink with my PC Techs on MerchantCircleBecome a fan of my PC Techs on FacebookArizona Business Networking, Leads, and Referrals - Grow Your Business
Home | Computer Repair Phoenix Arizona | Mac Repair | Testimonials | Contact | Privacy | Pay | Blog | Web Design
15815 S. 46th St., Suite 116, Phoenix, AZ 85048 | (602) 456-0150 | admin@mypctechs.com
Subscribe to the free my PC Techs technology newsletter  Proud members of the Ahwatukee Foothills Chamber of Commerce

©2010 my PC Techs is owned and operated by Leo Polus, L.L.C., concept by Andre Morris
 
   
bottom border