|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (11 bit)
|
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 |
|
|
|
|
|
#2 |
|
Wx geek
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." |
|
|
|
|
|
#3 | |
|
Member (11 bit)
|
Quote:
Thanks it works and my index.htm and index.php are with the same folder. |
|
|
|
|
|
|
#4 |
|
Barefoot on the Moon!
Staff
Premium Member
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.
|
|
|
|
|
|
#5 |
|
Member (11 bit)
|
|
|
|
|
|
|
#6 |
|
Member (10 bit)
|
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. |
|
|
|
|
|
#7 |
|
Barefoot on the Moon!
Staff
Premium Member
Join Date: Aug 2002
Location: Northeastern USA
Posts: 13,385
|
Perkster's solution is probably easiest.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
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 |