Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-11-2008, 05:17 PM   #1
Member (11 bit)
 
toomyg's Avatar
 
Join Date: Sep 2001
Location: Western New York
Posts: 1,178
Send a message via Yahoo to toomyg
index page

On my site here
http://tomswebplace.dyndns.org/index.htm but I want to have it go right to my forum here
http://tomswebplace.dyndns.org/index.php is there a piece of code or something I can do to make it if someone goes to the index.htm it goes right to the index.php page like an automatic redirector or something? I have seem it on other site.


Thanks Tom
toomyg is offline   Reply With Quote
Old 07-11-2008, 05:54 PM   #2
Wx geek
 
blue60007's Avatar
 
Join Date: Aug 2005
Location: Indiana
Posts: 6,638
Keeping in mind your webserver may not like having two index files,

Add this to your head block at the top,

< meta http-equiv="refresh" content="0;url=http://tomswebplace.dyndns.org/index.php"/>
(take that extra space out)

That should redirect from index.htm to index.php

http://en.wikipedia.org/wiki/Meta_refresh
__________________
"It is the way of man to make monsters and it is the nature of monsters to destroy their makers."
blue60007 is offline   Reply With Quote
Old 07-11-2008, 06:32 PM   #3
Member (11 bit)
 
toomyg's Avatar
 
Join Date: Sep 2001
Location: Western New York
Posts: 1,178
Send a message via Yahoo to toomyg
Quote:
Originally Posted by blue60007 View Post
Keeping in mind your webserver may not like having two index files,

Add this to your head block at the top,

< meta http-equiv="refresh" content="0;url=http://tomswebplace.dyndns.org/index.php"/>
(take that extra space out)

That should redirect from index.htm to index.php

http://en.wikipedia.org/wiki/Meta_refresh

Thanks it works and my index.htm and index.php are with the same folder.
toomyg is offline   Reply With Quote
Old 07-11-2008, 10:17 PM   #4
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
I'm a bit tired right now to actually put together the actual code, but you can do a url rewrite from the htm page to the php page with htaccess
__________________
There are two secrets to staying young, being happy, and achieving success. You have to laugh and find humor every day, and you have to have a dream.
Force Flow is offline   Reply With Quote
Old 07-12-2008, 06:22 AM   #5
Member (11 bit)
 
toomyg's Avatar
 
Join Date: Sep 2001
Location: Western New York
Posts: 1,178
Send a message via Yahoo to toomyg
Quote:
Originally Posted by Force Flow View Post
I'm a bit tired right now to actually put together the actual code, but you can do a url rewrite from the htm page to the php page with htaccess

I never mess wit those files but I have heard about editing them.
toomyg is offline   Reply With Quote
Old 07-12-2008, 11:31 AM   #6
Member (10 bit)
 
perkster's Avatar
 
Join Date: Mar 2007
Posts: 546
Send a message via ICQ to perkster Send a message via AIM to perkster Send a message via MSN to perkster Send a message via Yahoo to perkster Send a message via Skype™ to perkster
just remove the index.htm and it will go to index.php when someone goes to yoru site, you can also use default.php
__________________
Perkster
IT work as side project
My Current Rig:
MSI MS-6712 1.0 (socket A 462) with 2.15 gigahertz AMD Athlon XP 3000+, 2x Barracuda 160GB IDE HD's, 2x Kingston 512mb DDR PC2700 (166mhz) Memory. 2 IDE DVD drives, 1 External HD and one external DVD burner.

My first build (july 2007 for my fiance):
Asus P5B (Socket 775) PCI-Express DDR2 Motherboard, Intel Core 2 Duo E6600 "LGA775 Conroe" 2.40GHz (1066FSB) - Retail, Corsair 2GB DDR2 XMS2-5400C4 TwinX (2x1GB), Corsair HX 520W ATX2.2 Modular SLI Compliant PSU, Seagate Barracuda 7200.10 320GB ST3320620AS SATA-II 16MB Cache - OEM, Sony Floppy Drive, EVGA e-GeForce 8600 GTS 256MB DDR3 HDTV/DVI (PCI-Express) - Retail, Lite-On Serial ATA 20x DVD±RW Dual Layer ReWriter (Black) - OEM. Memory card reader, Windows XP SP2. Samsung SM226BW 22" LCD.
perkster is offline   Reply With Quote
Old 07-12-2008, 12:17 PM   #7
Barefoot on the Moon!
Staff
Premium Member
 
Force Flow's Avatar
 
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
Perkster's solution is probably easiest.
Force Flow is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save a web page mike12 Internet, Web Applications, & The Cloud 6 01-04-2008 04:58 AM
What loads when you call up the index page? chgo29 Web Design / Development 4 10-19-2007 07:46 PM
Inkjet is cheaper per page than a laser?! WizDawg Computer Hardware 5 04-16-2007 09:21 PM
Computer Acronyms Floppyman Computer Hardware 156 06-18-2006 06:25 AM
How do I delete a page in Word 2000 needhelp Software Discussion & Support 5 07-30-2003 08:09 AM


All times are GMT -5. The time now is 07:37 AM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2