If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Admin redirecting and stripping out the 'www'

Admin redirecting and stripping out the 'www'

Locked

Started by waitrose_carpark on 15 Jan 2007, 11:12 PM · Views: 1,361

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
15 Jan 2007, 11:12 PM
#1
waitrose_carpark avatar

waitrose_carpark

New Zenner

Join Date:
Jan 2007
Posts:
18
Plugin Contributions:
0

Post #1 by waitrose_carpark

Hi there

First I'd like to congratulate the staff for producing the most comprehensive (and easily navigable) set of faqs I've ever seen!

I am just about starting to get ssl enabled on my site when I noticed a slight problem:

every time I hit https://www.mysite.com/admin it redirects to mysite.com/admin, eg: it strips out the 'www' from the address. Even when I am in admin and a retype the 'www' in front of the url all the links within the admin backend have the 'www' stripped out.

I have checked all the config files and they all point to the correct site with 'www' in the right place.

I am just worried I will be unable to access the admin without the use of ssl when the site goes live.

Can anyone help? Anything I should check?

Many thanks in advance!

16 Jan 2007, 11:39 AM
#3
waitrose_carpark avatar

waitrose_carpark

New Zenner

Join Date:
Jan 2007
Posts:
18
Plugin Contributions:
0

Post #3 by waitrose_carpark

I'm really sorry kobra I'm not sure what you mean. I know about .htaccess but firstly I need to know:

  1. Is my website behaving normally?
  2. I have checked and double checked all the config files and they are all correct. If I am to use ssl to access the admin am I right in thinking all communication I have with the backend will be insecure because of the lack of the 'www' in the url? (I know I can order the cert without the 'www' but I would rather it was included)
16 Jan 2007, 12:21 PM
#4
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #4 by kobra

The behaviour is not normal with out some intervention like through htaccess or another redirect.

You Are correct that the SSL can be issued to either.

I would check with your host about this.

Zen-Venom Get Bitten

17 Jan 2007, 9:57 AM
#5
waitrose_carpark avatar

waitrose_carpark

New Zenner

Join Date:
Jan 2007
Posts:
18
Plugin Contributions:
0

Post #5 by waitrose_carpark

Can anyone post me or pm me a sample of their root and admin folders' .htaccess file?

I think my root .htaccess file is incomplete

Many thanks!

17 Jan 2007, 10:05 AM
#6
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Post #6 by kobra

email me through this forum and I will return one to you....

Alternatively, to see if this is even the issue. ftp yours at the root and in ZenCart if in a folder to you local, Delete them on the host and see if this corrects this. If not replace/FTP back. Or if so you now know where to look or maybe not look

Zen-Venom Get Bitten

17 Jan 2007, 12:09 PM
#7
waitrose_carpark avatar

waitrose_carpark

New Zenner

Join Date:
Jan 2007
Posts:
18
Plugin Contributions:
0

Post #7 by waitrose_carpark

DOH!

I hadn't (successfully) changed the site name in the configure.php in admin/includes.

I thought I had changed it before but missed the fatal warning in my cpanel file manager, I had changed permissions on the file beforehand and it hadn't saved my changes, so when I went back to check the site I assumed it hadn't worked.

Goes to show - when in doubt and the answer looks obvious, it probably is THAT answer.

Thanks to all, especially Kobra who took the time to pm and email me over it, I owe you a beer!!!!:D:D:D