Ask Your Question

Problem accessing /admin - redirects to old domain

asked 2012-12-30 08:29:51 -0500

mornaner's avatar

updated 2013-01-16 12:33:05 -0500

We have an issue with the site domain. When doing the migration we tested the site at and this was the domain in the settings.

Now the site is in production and I have changed


CSRF_COOKIE_NAME = 'draw3cards.com_csrf'

The site works well, but when I try to access the site redirects me to and, obviously, doesn't work.


I've searched both in the code and the database the string and it doesn't appear in either one.

However, looking in error_log I found this:

[Wed Jan 16 17:54:23 2013] [debug] mod_deflate.c(615): [client xx.xx.xx.xx] Zlib: Compressed 337 to 234 : URL /draw3cards/admin/
edit retag flag offensive close merge delete


Suggested edit: Problem accessing /admin - redirects to old domain

ripper234's avatar ripper234  ( 2013-01-02 02:48:12 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-01-22 12:36:58 -0500

mornaner's avatar

@ripper234 was able to fix this. It was a rule in our apache config what was causing this problem.

edit flag offensive delete link more

answered 2013-01-08 17:48:08 -0500

Evgeny's avatar

updated 2013-01-08 17:49:13 -0500

Try setting CSRF_COOKIE_DOMAIN to empty string, it is not necessary actually, or you could make it ''. Either way cookie would be shared between all subdomains.

edit flag offensive delete link more


Tried setting CSRF_COOKIE_DOMAIN to '' and still get the same result.

mornaner's avatar mornaner  ( 2013-01-10 01:27:19 -0500 )edit

BTW, I think I didn't receive an email notification about this post, even though I have "email me when there are any new answers" checked. I believe I actually don't receive any emails from Askbot. Nothing in my spam folder.

ripper234's avatar ripper234  ( 2013-01-11 02:35:05 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2012-12-30 08:29:51 -0500

Seen: 299 times

Last updated: Jan 22 '13