logo-dw

Go Back   Dreamweaver Club Forums > Dreamweaver forums > Web Hosting and FTP
Register FAQ Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
Old 10-12-2010, 06:23 PM   #1
Jules1777
 
Join Date: Nov 2007
Posts: 30
Exclamation 301 Redirect

Hi

Could someone please help.....

I am trying to do a 301 Redirect for a site I have done. My ultimate aim is to redirect all the site to www. as this, I am told, makes the site more 'search engine friendly'

I have read about .htaccess files and httpd.conf, but to be honest I am not really sure what this means. Can someone explain how to do this as I can't work it out.

Thanks in advance
Jules1777
Jules1777 is offline   Reply With Quote
Old 10-13-2010, 01:21 AM   #2
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

.htaccess is a file that you can make with notepad or any text editor. it sits in your root directory providing it is a unix server and can have many uses. for wht you want you may find you can do this via your sites control panel if not put this (modified to your site name) in an .htaccess file
Code:
Options +FollowSymLinks 
RewriteEngine on 
RewriteCond %{HTTP_HOST} ^yoursite.com [NC] 
RewriteRule ^(.*)$ http://www.yoursite.com/$1 [L,R=301]
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Old 10-13-2010, 08:12 PM   #3
Jules1777
 
Join Date: Nov 2007
Posts: 30
Default

It isn't a Unix server, it is an Apache server. How do I do this?
Jules1777 is offline   Reply With Quote
Old 10-14-2010, 01:27 AM   #4
edbr
edbr's Avatar
 
Join Date: Aug 2005
Location: Bali
Posts: 11,164
Default

you call it potato i call it spud, apache is a unix server so use the .htaccess
__________________
If you're happy and you know it shake your meds!
different style links examples

Flight / Hotel search
Free script download
Bali Villas
edbr is offline   Reply With Quote
Reply


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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:59 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Copyright 2006 DreamweaverClub.com