Webmaster Forum


Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Coding Forum Problems with your code? Let's hear about it.

Ezilon Directory   I Sell Pagerank   V7N Directory

Reply
 
LinkBack Thread Tools Display Modes
Old 10-14-2004, 05:35 PM   #1 (permalink)
Inactive
 
gunface's Avatar
 
Join Date: 04-13-04
Posts: 31
iTrader: 0 / 0%
Latest Blog:
None

gunface is liked by many
Arrow Load index.php as default or mod_rewrite?

The main page that loads for my domain root is index.php, and for some reason when you type the full path to this page instead of the domain alone, I get all kinds of relevant Google ads.

( See - http://www.v7n.com/forums/showthread.php?t=14392 )

Basically, since no one as of yet can determine the reason for this, I'm looking for a technical work-around. I've already tried uploading an index.html and having that page redirect to index.php - it works, but I'm scared Google will penalize me for redirecting. Is this true? If someone could specifically tell me how to implement a solution, (mod_rewrite?) it would be much appeciated.

Thanks...
gunface is offline  
Add Post to del.icio.us
Reply With Quote
Sponsored Links
SEO Hosting by HostGator  Advertise Here  Buy Blog Links
Old 10-14-2004, 06:48 PM   #2 (permalink)
Inactive
 
seonewbee's Avatar
 
Join Date: 05-12-04
Posts: 520
iTrader: 0 / 0%
Latest Blog:
None

seonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really niceseonewbee is just really nice
You can use .htaccess to set the default page

Code:
DirectoryIndex index.php
You can also use .htaccess to redirect all your other pages (index.htm, index.html) to index.php

Code:
Redirect 301 index.htm http://www.yourdomain.com/index.php
You do mod rewrite in your .htaccess file. To do mod rewrite you will ne something like this

Code:
RewriteEngine On RewriteRule ^index.html$ /index.php [R=301]
Hope that this points you in the right direction.
seonewbee is offline  
Add Post to del.icio.us
Reply With Quote
Old 10-15-2004, 09:19 PM   #3 (permalink)
Inactive
 
gunface's Avatar
 
Join Date: 04-13-04
Posts: 31
iTrader: 0 / 0%
Latest Blog:
None

gunface is liked by many
Arrow

I'm wondering if the redirect will be penalized by Google's search?
gunface is offline  
Add Post to del.icio.us
Reply With Quote
Go Back   Webmaster Forum > Web Development > Web Design Lobby > Coding Forum

Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

vB 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
How to redirect index.html to index.php and keep the same positions? sniperhiga SEO Forum 7 04-23-2007 06:51 AM
google index times and inital index? jasonstrempke Google Forum 10 04-24-2006 10:19 AM
How to change the default web address in IE minbak Computers & Internet 8 03-16-2006 01:58 AM
Default to HTML SN3 Coding Forum 9 06-12-2005 12:16 PM
Default page. realestate SEO Forum 3 09-26-2004 09:42 PM


Sponsor Links
Get exposure! Get exposure! Find Scripts Web Hosting Directory Get exposure! SEO Blog


All times are GMT -7. The time now is 03:34 PM.
© Copyright 2008 V7 Inc