Support Forums

Re-direct index.html to simply yoursite.com

This is a discussion on Re-direct index.html to simply yoursite.com within the Technical Support forums, part of the Technical Support Forums category; What version of 68 Classifieds are you running? Example: V4.1.6 Designer What template are you using? purple Please describe in ...


Go Back   68 Classifieds Forums > Technical Support Forums > Technical Support

Reply
 
Thread Tools Display Modes
Old 02-18-2010, 04:40 PM   #1
Customer
 
Join Date: Feb 2010
Location: Montreal, QC
Posts: 170
Rep Power: 6
EnergyFreak is on a distinguished road
Default Re-direct index.html to simply yoursite.com

What version of 68 Classifieds are you running?
Example: V4.1.6 Designer

What template are you using?
purple

Please describe in detail the issue you are having:

Hi,

I would like to re-direct www.yoursite.com/index.html to simply www.yoursite.com because I do not want google to give different ranks for both and index both of them as being to two different things.

Thanks.
EnergyFreak is offline   Reply With Quote
Old 02-18-2010, 06:53 PM   #2
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,779
Rep Power: 67
seymourjames is a jewel in the rough
Default

Google is your friend. Look at creating and modifying your .htaccess file and managing canonical urls. There are lots and lots of tutorials and examples of how to do that.

In particular, look at mod_rewrite for http://yourdomain.com to http://www.yourdomain.com/ and the rewrite you mention.
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
Old 02-19-2010, 09:45 PM   #3
68 Evangelist & Developer
 
 
Join Date: Jan 2007
Location: Pennsylvania, USA
Posts: 1,972
Rep Power: 58
Mike-N-Tosh is just really nice Mike-N-Tosh is just really nice
Default

Doing a simple redirect for the page is usually something that can be done in the control panel of your hosting account.

I may be wrong, but I don't believe Google or any search engine would give separate rankings, etc. for the home page of a website (eg. index.html, index.php, index.asp), because all links for the domain then go from the home page and that part of the url disappears. For example, if you went to yoursite.com/search.php there is no yoursite.com/index.html/search.php or yoursite.com/index.php/search.php.

In addition, the index page (home page) of a website by protocol doesn't need to be called specifically which is why you CAN use yoursite.com and it works without specifying what the suffix/extension is for the index file is regardless of what web server software is being used.
__________________
Mike-N-Tosh
IndianaPC.org - A community website (v3.1.10 Developer - heavily modified & used as the CMS)
Sandbox [localhost(v3.1.10, v4.0.9, 4.1.10)] for development and customization
Visit My blog: reviews, tips, tricks, tutorials and my store with Templates, Mods & Docs
Web Hosting | Web Design & Development | 68 Classifieds Customizations
I am not a 68C employee, just a user and try to help out
Mike-N-Tosh is offline   Reply With Quote
Old 02-20-2010, 07:18 AM   #4
All Hands On Deck
 
 
Join Date: Mar 2008
Posts: 2,779
Rep Power: 67
seymourjames is a jewel in the rough
Default

There used to be canonical problems with urls but most search engines have overcome that problem now. I use a .htaccess file to rewrite urls mainly for aesthetic reasons. This rewrites index to / and non-www pages to www format.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

#rewrite index.php to root

RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://www.mydomain.com/ [R=permanent,L]

#rewrite all non www pages

RewriteCond %{HTTP_HOST} ^mydomain\.com$
RewriteRule ^.*$ http://www.mydomain.com%{REQUEST_URI} [R=permanent,L,NC]
</IfModule>
__________________
"The fool doth think he is wise, but the wise man knows himself to be a fool.".

TemplateCodes.com for 68 Classifieds
seymourjames is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
see direct link of this url in seo damiun Technical Support 7 10-21-2009 08:59 AM
Protecting folders with index.html mark Technical Support 3 09-25-2009 10:42 AM
Direct Deposit Bank Payment option JP2 Designs Technical Support 2 06-16-2009 08:38 AM
How use only the main table in my index.html file? zavala77 Modules / Plugins / Modifications 5 06-24-2008 08:26 AM


All times are GMT -4. The time now is 10:21 PM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0