Web Hosting Forum | Lunarpages


*
Welcome, Guest. Please login or register.
Did you miss your activation email?



Login with username, password and session length
May 16, 2012, 06:40:56 PM

Pages: [1]   Go Down
  Print  
Author Topic: cPanel/Redirect not working; .htaccess fiddles not working - Redirect Help?  (Read 2397 times)
svend2
Newbie
*
Offline Offline

Posts: 1


« on: January 31, 2011, 02:58:49 PM »

I've searched the LunarForums for an answer, and apparently a lot of people have had this problem, but I still have not found a solution.

I work for a company that sells marine products and services. The primary domain is svendsens.com. We have a subdomain, svendsensmarine.com, which we use for an ecommerce site. That site uses Volusion, so most of the pages are built on the fly and don't exist as entities.

Years ago (before I came here), one of the vendors whose products we sell, Gill, demanded that we split all their products out into a separate online store since we couldn't sell anything on the same site as competitors' products. So we did that, and created yet another domain: svendsensgillstore.com, also run with Volusion.

Now, we have dropped the competitors, and I have brought all the products from the separate Gill-only store (svendsensgillstore.com) over to our main online store (svendsensmarine.com). What I'd like to do now is redirect the domain svendsensgillstore.com to point at svendsensmarine.com, so that any links to the Gill store out there will bring visitors to the main svendsensmarine.com site.

I have tried using the Redirect function in cPanel (tried to attach screenshot, got an 'attachment directory not writable' message - ??). No dice. I have tried using Redirecting in the .htaccess file. Nothing. When I asked LunarPages customer service, I was told they don't give this kind of support, and to come ask you guys. So here I am.
Caveat: I am a graphic designer and art director. In this lovely economic climate, like so many people out there, I have had to take on more responsibilities - including the webmaster chores around here - and I'm the first to admit that the world of domains, chmods, PHP, and the like makes my brain come to a complete halt. So for you tech masters, forgive my newbie ignorance - but if you can solve my problem easily and quickly, I give you full permission to cap on me for it!
Thanks very much for you time - Sarah.
« Last Edit: January 31, 2011, 03:00:47 PM by svend2 » Logged
MrPhil
Senior Moderator
Berserker Poster
*****
Offline Offline

Posts: 5191



« Reply #1 on: January 31, 2011, 07:31:24 PM »

First of all, svendsensmarine.com and svendsensgillstore.com are not subdomains. They are add-on domains. Now, are you on the new cPanel or the old one? I know that the old cPanel had terrible problems with redirection for subdomains and add-on domains. You had to manually write the redirection in .htaccess. I don't know if the situation is any better in the new one. Anyway, it's simple enough to do the redirection yourself.

This is for redirecting all visitors coming into svendsensgillstore.com to svendsensmarine.com. Note that your visitors will see that they are now in svendsensmarine.com. Saved (bookmarked) links to deep inside the old svendsensgillstore.com will probably produce errors (404s), so if you want to only redirect certain URLs, it can be done, but it's extra work.

In /home/YOURACCOUNT/public_html/svendsensgillstore/.htaccess (assuming that's the right path for http://svendsensgillstore.com/.htaccess), create the file if it doesn't exist. If it does exist, remove any existing redirection and add this:
Code:
RewriteEngine On
RewriteRule ^(.*)$  http://www.svendsensmarine.com/$1 [R=301]
Omit the www. if you need to. There's a possibility if it doesn't work that you may have to change the pattern from ^(.*)$ to ^svendsensgillstore/?(.*)$.
Logged

Visit My Site

E-mail Me
  
-= From the ashes shall rise a sooty tern =-
Pages: [1]   Go Up
  Print  
 
Jump to: