the main page

This is a discussion on "the main page" within the Web Page Design section. This forum, and the thread "the main page are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Nov 30th, 2007, 22:14
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
the main page

How do I make sure that markverkler.org goes to the homepage without having to type www.markverkler.org
Reply With Quote

  #2 (permalink)  
Old Nov 30th, 2007, 22:20
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: the main page

Firstly, you shouldn't really link to index.php when talking about your website: markverkler.org is fine.

Although, if you still want to do this, you should try this code:

Code: Select all
Redirect 301 / http://www.yoursite.com/index.html
That should do the trick providng you put that code in an .htaccess file and also your host supports .htaccess !
Reply With Quote
  #3 (permalink)  
Old Nov 30th, 2007, 22:27
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: the main page

So that will take http://markverkler.org and make sure it goes to the proper page?

Where must I place that code?
Reply With Quote
  #4 (permalink)  
Old Nov 30th, 2007, 23:31
Aso's Avatar
Aso Aso is online now
Chief Moderator

SuperMember
Join Date: Oct 2007
Location: UK
Posts: 1,008
Blog Entries: 2
Thanks: 5
Thanked 23 Times in 20 Posts
Send a message via Skype™ to Aso
Re: the main page

A .htaccess will do the trick. If you're host is running the Apache server and allows .htaccess file overrides, save this in a file called .htaccess and upload to your main website folder:

Code: Select all
RewriteEngine On 
RewriteCond %{HTTP_HOST} ^markverkler.org
RewriteRule (.*) http://www.markverkley.org/$1 [R=301,L]
This redirects all requests for 'markverkley.org' to www.markverkley.org (i.e if they just type markverkley.org, they'll get to you )

NOTE: Make sure your editor does not modify the file extension - things like notepad will add '.txt' unless you choose File type > All files in the save dialog box. .htaccess has no extension (well I guess .htaccess IS the extension)
Last Blog Entry: The Google Misconception (Feb 3rd, 2008)
Reply With Quote
  #5 (permalink)  
Old Dec 1st, 2007, 04:20
Highly Reputable Member
Join Date: Sep 2007
Age: 15
Posts: 717
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Re: the main page

The above will work. Just make sure to upload the .htaccess file to the absolute root of your site... Otherwise it won't work!
Last Blog Entry: Windows Vista vs. Mac Leopard (Nov 4th, 2007)
Reply With Quote
  #6 (permalink)  
Old Dec 2nd, 2007, 11:57
Reputable Member
Join Date: Oct 2007
Location: At my house
Age: 22
Posts: 193
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to thewebkid
Re: the main page

it works on i.e. but not on firefox
Reply With Quote
  #7 (permalink)  
Old Dec 3rd, 2007, 12:09
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 16 Times in 14 Posts
Re: the main page

works for me, can you clear your cache and try again
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #8 (permalink)  
Old Dec 3rd, 2007, 12:15
Marc's Avatar
Moderator

SuperMember
Join Date: Apr 2007
Location: Scotland, UK
Age: 15
Posts: 1,649
Thanks: 0
Thanked 8 Times in 8 Posts
Send a message via MSN to Marc Send a message via Skype™ to Marc
Re: the main page

Yes, it works for me also.

If you don't know how to clear your cache, visit: http://www.microsoft.com/windows/ie/...learcache.mspx.
Reply With Quote
  #9 (permalink)  
Old Dec 3rd, 2007, 12:30
welshstew's Avatar
Lead Administrator

SuperMember
Join Date: May 2007
Location: inside the outside
Posts: 1,388
Blog Entries: 13
Thanks: 1
Thanked 16 Times in 14 Posts
Re: the main page

you can also look here for some of the other browsers you may have.
__________________
WelshStew
Lead Administrator

tierney rides tboard - uk site | xtreme wales - extreme clothing
If you think I've helped, click the "Thanks"
webforumz - facebook | LinkedIn
Last Blog Entry: Web Standards Curriculum Launched (Jul 8th, 2008)
Reply With Quote
  #10 (permalink)  
Old Dec 3rd, 2007, 14:08
karinne's Avatar
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: the main page

The simplest way is just to use the default page name.

Most servers have index.??? set as the default page. Some do have default.???

I have NEVER used an .htaccess file and never had a problem with that.
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
CF Designz Main crackafaza Free Web Site Critique 4 Apr 28th, 2008 17:12
soft border around main box Johnathan Web Page Design 3 Feb 25th, 2008 21:17
problem with main page when opening new window Ice JavaScript Forum 20 Feb 13th, 2008 22:17
Loading bars before main page is displayed. Toby1979 Flash & Multimedia Forum 4 Jul 3rd, 2007 20:20
what is the main? squirrel_535 Flash & Multimedia Forum 2 Jul 3rd, 2006 11:00


All times are GMT. The time now is 10:53.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43