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 08-08-2011, 05:28 PM   #1
JBD
 
Join Date: Feb 2007
Location: Bristol, UK
Posts: 178
Default 301 redirect help

I need to redirect some of my old pages to new ones (with different urls) only I'm having trouble trying to create a .htaccess file. I use a mac and understand that macs automatically hide a "." file when created.

I'm just wondering if anyone has advice on how to create 301 redirects on a mac? My host is 1and1 - I've tried searching the control panel but they do not seem to provide a 301 redirect feature.

Help much appreciated!
JBD is offline   Reply With Quote
Old 08-08-2011, 05:36 PM   #2
DWcourse
DWcourse's Avatar
 
Join Date: Apr 2009
Posts: 3,276
Default

you can just name the file htaccess on your mac and add the period after uploading
__________________
If my answer helped, check out DWcourse.com for Dreamweaver tips and tutorials.
DWcourse is offline   Reply With Quote
Old 08-08-2011, 05:41 PM   #3
JBD
 
Join Date: Feb 2007
Location: Bristol, UK
Posts: 178
Default

Perfect! Such a simple solution Many thanks!
JBD is offline   Reply With Quote
Old 08-08-2011, 06:41 PM   #4
JBD
 
Join Date: Feb 2007
Location: Bristol, UK
Posts: 178
Default

Another question regarding redirects...

Should I direct for instance:

http://mydomain.com
http://www.mydomain.com
http://mydomain.com/index
http://www.mydomain.com/index
http://mydomain.com/index.html
http://www.mydomain.com/index.html

all of these variants (and any others) all to one url?
JBD is offline   Reply With Quote
Old 08-08-2011, 08:18 PM   #5
domedia
Administrator
domedia's Avatar
 
Join Date: Dec 2003
Posts: 9,730
Default

not all.

/index is a directory name.

It should first happen on the subdomain level (with or without 'www'), then you can redirect default directory index page (index.html). But for pages you don;t have, create a cool 404 page.
domedia is offline   Reply With Quote
Old 08-08-2011, 08:46 PM   #6
JBD
 
Join Date: Feb 2007
Location: Bristol, UK
Posts: 178
Default

I'm not sure I understand what to do with the index.html file. I notice if I try http://www.dreamweaverclub.com/index.html I get a 404 page. I thought the index file is the file used for the subdomain? Should I be redirecting my index file?
JBD 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 11:15 PM.


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