droliff
12-24-2008, 07:35 PM
Hi all,
Dennis here. I hope I am posting this question in the correct section of the forums. If not please let me know which coding or other section this question would best fit into.
I am new to this forum and looking for some expert advice on redirecting a domain name that I've purchased on Godaddy and pointing it to a folder that will house this domains website on my current webserver where my business website resides. I have made the necessary DNS changes to the domain name from Godaddy so that it points to my business web hosting server. Now I just need it to point to it's homefolder.
I am with verio.com's webhosting service (their basic UNIX plan (http://www.verio.com/unix-hosting-plans/), and I've just moved to that plan from an older verio plan (the new plan costs half as much but seems to offer more, go figure :rolleyes:). My IP address and server have changed and I have made all the DNS modifications necessary. Everything seems to be in order now except one thing. When I was on the old plan I was able to 'virtual host' a website for a club that I am in, domain name laughingclubneo.com (The Laughing Club of Northeast Ohio). Domain was purchased through Godaddy.com and I changed the DNS numbers at Godaddy to point this domain to my new server with Verio. I was able to virtual host the laughing club site on my old verio server via a redirect by adding a .htaccess file to the root directory (http://www.verio.com/support/documents/view_article.cfm?doc_id=3624) (scroll down to 'redirect a machine name'). I am operating on a Mac Pro using OS 10.5.5 The instructions for creating the .htaccess file said to start with just the ".".
When I tried to save a file on my hard drive using text edit in ASCII or plain text mode I got a popup warning that any files saved using just a "." at the beginning were strictly for the system and would become invisible. Well this is what happened. So I named the .htaccess file vh.htaccess (vh for virtual hosting). Here is the code that I used in the file which worked on the previous plan/server to redirect the laughingclubneo.com domain to a folder in my root directory called laughingclubneo.com (http://dennisroliff.com/laughingclubneo.com/) :
<Files vh.htaccess>
order allow,deny
deny from all
</Files>
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} laughingclubneo.com$
RewriteCond %{REQUEST_URI} !laughingclubneo.com/
RewriteRule ^(.*)$ laughingclubneo.com/$1
<Files vh.htaccess>
order allow,deny
deny from all
</Files>
I tried adding this file to the root directory on my new Verio server and it isn't working. I was told by a Verio tech support person that they could not help me in writing a redirect code (even though a week before another Verio tech support guy had done just that :rolleyes: ) but said that I needed to Google and research something called a 301 redirect.
I googled '301 redirect' and accessed this tutorial (http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm) which I couldn't really figure out, even though it seemed simpler than the other code, lol.
I am here to ask anyone if they can help me with this redirect code or process so that I can put a cap on this server/plan move and have everything working again.
I know that virtual hosting is possible and done all the time and I am confident that I will get some great suggestions here on this forum.
Thanks in advance for any input.
Best,
Dennis
Dennis here. I hope I am posting this question in the correct section of the forums. If not please let me know which coding or other section this question would best fit into.
I am new to this forum and looking for some expert advice on redirecting a domain name that I've purchased on Godaddy and pointing it to a folder that will house this domains website on my current webserver where my business website resides. I have made the necessary DNS changes to the domain name from Godaddy so that it points to my business web hosting server. Now I just need it to point to it's homefolder.
I am with verio.com's webhosting service (their basic UNIX plan (http://www.verio.com/unix-hosting-plans/), and I've just moved to that plan from an older verio plan (the new plan costs half as much but seems to offer more, go figure :rolleyes:). My IP address and server have changed and I have made all the DNS modifications necessary. Everything seems to be in order now except one thing. When I was on the old plan I was able to 'virtual host' a website for a club that I am in, domain name laughingclubneo.com (The Laughing Club of Northeast Ohio). Domain was purchased through Godaddy.com and I changed the DNS numbers at Godaddy to point this domain to my new server with Verio. I was able to virtual host the laughing club site on my old verio server via a redirect by adding a .htaccess file to the root directory (http://www.verio.com/support/documents/view_article.cfm?doc_id=3624) (scroll down to 'redirect a machine name'). I am operating on a Mac Pro using OS 10.5.5 The instructions for creating the .htaccess file said to start with just the ".".
When I tried to save a file on my hard drive using text edit in ASCII or plain text mode I got a popup warning that any files saved using just a "." at the beginning were strictly for the system and would become invisible. Well this is what happened. So I named the .htaccess file vh.htaccess (vh for virtual hosting). Here is the code that I used in the file which worked on the previous plan/server to redirect the laughingclubneo.com domain to a folder in my root directory called laughingclubneo.com (http://dennisroliff.com/laughingclubneo.com/) :
<Files vh.htaccess>
order allow,deny
deny from all
</Files>
RewriteEngine On
Options +FollowSymlinks
RewriteBase /
RewriteCond %{HTTP_HOST} laughingclubneo.com$
RewriteCond %{REQUEST_URI} !laughingclubneo.com/
RewriteRule ^(.*)$ laughingclubneo.com/$1
<Files vh.htaccess>
order allow,deny
deny from all
</Files>
I tried adding this file to the root directory on my new Verio server and it isn't working. I was told by a Verio tech support person that they could not help me in writing a redirect code (even though a week before another Verio tech support guy had done just that :rolleyes: ) but said that I needed to Google and research something called a 301 redirect.
I googled '301 redirect' and accessed this tutorial (http://www.tamingthebeast.net/articles3/spiders-301-redirect.htm) which I couldn't really figure out, even though it seemed simpler than the other code, lol.
I am here to ask anyone if they can help me with this redirect code or process so that I can put a cap on this server/plan move and have everything working again.
I know that virtual hosting is possible and done all the time and I am confident that I will get some great suggestions here on this forum.
Thanks in advance for any input.
Best,
Dennis