Whittie
Member
Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
|
Yo guys, got to start and finish an online shop tonight.
The domain has been on my hosting for the last ~18 months and i've had a redirect on it pointing to the clients sister business.
I've installed magento and theme of choice about 20 mins ago, just gone to see it now and it's still redirecting (which I forgot about), the admin url won't load either. The .htaccess has been replaced by one that was included in the template...
I'm guessing there's something in there, where I could add a re-direct exception, which stops it, or even further re-directs it? Need a quick fix as i'm pretty fucked if its not sorted for tomorrow.
Thank you
|
Whittie
Member
Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
|
Oh forgot to say - The redirect is no longer in my "Cpanel" list.... As no doubt that would be first answer.
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
So the domain's DNS points to your hosting? And you did have it redirecting (set up from your cPanel?) to another site (different host etc etc) but now you're wanting to remove the redirect and direct the domain to a site hosted on your host?
I'd try removing the domain completely from your cPanel and the site (obviously back it up), the domain should then point to cPanels default site, then re-add the domain ('Addon Domain'), making sure it gets added correctly (now you should get an index listing or 403), then set up the magento site accordingly.
[Edited on 23-07-2012 by Dom]
|
Whittie
Member
Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
|
Exactly that.
I'll try deleting it from cpanel and starting again now. Fingers crossed.
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
I suspect it's a borked config somewhere.
But i'd be testing the domain at every stage - so with only the domains DNS pointing to your host/server, you should get the cPanel Default Site (something like THIS), once you get that then add the domain to your cPanel as either an 'Addon' or 'Parked' domain (you want 'Addon') then you'll either get a listed index or if indexing is off a 403. At this point you know the domain is correctly setup, so you just need to sort the site out.
Obviously if you're using WHM then you'll point the domain to your host and then create a new site (with package etc) account for that domain.
[Edited on 23-07-2012 by Dom]
|
Sam
Moderator Premium Member
Registered: 24th Dec 99
Location: West Midlands
User status: Offline
|
This probably won't help, but something similar happened to me once and in the end I had to clear the DNS cache (ipconfig /flushdns on Windows) and the browser cache. After that it worked.
But like I say, probably won't help...
|
Whittie
Member
Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
|
Still re-directing!
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
Assuming you're doing Ctrl+F5 (ie - a full refresh of the page)?
Try Sam's suggestion of flushing the local DNS cache.
|
Whittie
Member
Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
|
Aye I did...
Just uploaded a index,html that said "hi" and it's worked...
Uploaded that .htaccess file from the theme and it redirects to the other domain
|
Dom
Member
Registered: 13th Sep 03
User status: Offline
|
Double check the .htaccess file on the server (ie - don't view the local, download the remote) isn't fudged. They aren't cached or anything so it sounds like a cPanel/Apache config issue. If you have control of the server then reboot cPanel otherwise fire a ticket off and get your host to look at it.
Edit - Guessing the domain is purely added as an 'Addon' which is pointing to a local directory (/public_html/fuckinghench.com etc)? And you haven't got it added as a parked domain with a redirect or anything?
[Edited on 23-07-2012 by Dom]
|
Whittie
Member
Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
|
I've ended up merging another .htaccess with it and its working okay now, will see how I get on now...
quote: Originally posted by Dom
Edit - Guessing the domain is purely added as an 'Addon' which is pointing to a local directory (/public_html/fuckinghench.com etc)? And you haven't got it added as a parked domain with a redirect or anything?
Awesome example Dom! And correct.
[Edited on 23-07-2012 by Whittie]
|
Whittie
Member
Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
|
The following errors were found :
Installation cannot proceed because the following files already exist in the target folder :
.htaccess
Please delete these files or choose another folder.OR
Select the checkbox to overwrite all files and continue
Fail.
Installed it by overwriting (once backing up) and its re-directing again
|