page | Tech Club
Phoenix Computer Repair and Business IT Support | Expert Solutions You Can Trust
 
 
 

Computer Repair Experts in Phoenix, Arizona. my PC Techs Presents:

Tech Club - 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

Which Do You Use Most Often for Work?

View Results

Loading ... Loading ...

Posts Tagged ‘page’

Please Visit and Follow Our New Google+ Page

Sunday, October 5th, 2014

We’ve created a new Google+ page for our new location in Phoenix, Arizona. You can find it here. Please visit and follow:
https://plus.google.com/+Mypctechs-Phoenix-AZ/posts

Our new page features an animated cover image. If you like it, take a look at our quick tutorial explaining how to create your own:

my PC Techs now on Google+

Monday, November 7th, 2011

my PC Techs has created a new business page on Google+! Head over and circle us:

https://plus.google.com/+Mypctechs-Phoenix-AZ

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!

 




Dell Registered Partnermy PC Techs on TwitterFacebook Page for my PC TechsArizona Business Directory
Home | Computer Repair Phoenix | Mac Repair | Testimonials | Contact | Privacy | Pay | Blog RSS feed for my PC Techs news | Site Map | Web Design

Phoenix Arizona: 125 N. 2nd Street, Suite 533 Phoenix, Arizona 85004
Phone: (602) 456-0150 | Email: admin@mypctechs.com
Tech Support by United States Citizens Based in Arizona

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

Same day on-site computer repair services for these Arizona cities: Apache Junction, Ahwatukee, Carefree, Cave Creek, Chandler, Chandler Heights, Fountain Hills, Gilbert, Glendale, Higley, Laveen, Mesa, Paradise Valley, Peoria, Phoenix, Scottsdale, Tempe

We service these Phoenix area zip codes: 85001, 85002, 85003, 85004, 85005, 85006, 85007, 85008, 85009, 85010, 85011, 85012, 85013, 85014, 85015, 85016, 85017, 85018, 85019, 85020, 85021, 85022, 85023, 85024, 85025, 85026, 85027, 85028, 85029, 85030, 85031, 85032, 85033, 85034, 85035, 85036, 85037, 85038, 85039, 85040, 85041, 85042, 85043, 85044, 85045, 85046, 85048, 85050, 85051, 85053, 85054, 85055, 85060, 85061, 85062, 85063, 85064, 85065, 85066, 85067, 85068, 85069, 85070, 85071, 85072, 85073, 85074, 85075, 85076, 85078, 85079, 85080, 85082, 85083, 85085, 85086, 85087, 85097, 85098, 85099, 85117, 85118, 85119, 85120, 85121, 85122, 85123, 85127, 85140, 85141, 85142, 85143, 85145, 85147, 85172, 85173, 85178, 85190, 85201, 85202, 85203, 85204, 85205, 85206, 85207, 85208, 85209, 85210, 85211, 85212, 85213, 85214, 85215, 85216, 85217, 85218, 85219, 85220, 85224, 85225, 85226, 85227, 85233, 85234, 85236, 85241, 85242, 85244, 85246, 85248, 85249, 85250, 85251, 85252, 85253, 85254, 85255, 85256, 85257, 85258, 85259, 85260, 85261, 85262, 85263, 85264, 85266, 85267, 85268, 85269, 85271, 85274, 85275, 85277, 85278, 85280, 85281, 85282, 85283, 85284, 85285, 85286, 85287, 85290, 85295, 85296, 85297, 85298, 85299, 85301, 85302, 85303, 85304, 85305, 85306, 85307, 85308, 85309, 85310, 85311, 85312, 85318, 85322, 85323, 85326, 85327, 85329, 85331, 85335, 85338, 85339, 85340, 85343, 85345, 85351, 85353, 85363, 85372, 85373, 85374, 85375, 85376, 85377, 85378, 85379, 85380, 85381, 85382, 85383, 85385, 85387, 85388, 85396

my PC Techs | Expert Computer Solutions You Can Trust | (602) 456-0150