Moved blog and now admin pages require login over and over
Moved blog and now admin pages require login over and over
Hi,
I've moved my blog within the same server from the root directory, i.e. /home/wwwroot/domain.name/ to home/wwwroot/domain.name/blog/. Everything works (I've done the DB changes) but I cannot access the admin functions.
It can go /blog/admin/ but it will send me to the login page whenever I click on new entry, media manager, etc. it's like stuck in a loop.
anything I did wrong? I moved the blog files, directory structure and all, including the .htaccess files.
thanks!
eugene[/list]
I've moved my blog within the same server from the root directory, i.e. /home/wwwroot/domain.name/ to home/wwwroot/domain.name/blog/. Everything works (I've done the DB changes) but I cannot access the admin functions.
It can go /blog/admin/ but it will send me to the login page whenever I click on new entry, media manager, etc. it's like stuck in a loop.
anything I did wrong? I moved the blog files, directory structure and all, including the .htaccess files.
thanks!
eugene[/list]
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
No, s9y doesn't store anything in memory. It might have been PHP session related, or the httpd vhost container might not have been properly issued yet?
Regards,
Garvin
No, s9y doesn't store anything in memory. It might have been PHP session related, or the httpd vhost container might not have been properly issued yet?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Hi Garvin,
Actually, I managed to reproduce the problem - it seems to stem from my Firefox. Perhaps its the session management plugin or stored authentication. It's only on my main machine though. FF and IE on the other PC and my notebook does not result in the login loop in the admin pages.
Not sure which, and I was in a hurry so I used IE to make some changes. I'll investigate Firefox's weird behavior later tonight.
Actually, I managed to reproduce the problem - it seems to stem from my Firefox. Perhaps its the session management plugin or stored authentication. It's only on my main machine though. FF and IE on the other PC and my notebook does not result in the login loop in the admin pages.
Not sure which, and I was in a hurry so I used IE to make some changes. I'll investigate Firefox's weird behavior later tonight.
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
In which regard does it seem related to .htaccess? You did try to erase your browser's cookie for your blog URL, right?
Have you checked that the index.php file is there and you can access that through the URL? And have you checked if proper paths are setup inside .htaccess?
regards,
Garvin
In which regard does it seem related to .htaccess? You did try to erase your browser's cookie for your blog URL, right?
Have you checked that the index.php file is there and you can access that through the URL? And have you checked if proper paths are setup inside .htaccess?
regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Yes, did all you mentioned. And yes, because when I delete the .htaccess file, it loads automatically, I can log into the admin, but still if I click on anything (i.e. configuration), it goes back to the login page.garvinhicking wrote:Hi!
In which regard does it seem related to .htaccess? You did try to erase your browser's cookie for your blog URL, right?
Have you checked that the index.php file is there and you can access that through the URL? And have you checked if proper paths are setup inside .htaccess?
regards,
Garvin
I went through the mysql dump and edited the paths to reflect the new path (from / to /blog/)...maybe I missed one somewhere.
But still is the fact that without the .htaccess file, it loads.
BTW, what does the "_vti_pvt" do?
Here is my .htaccess:
Code: Select all
# -FrontPage-
IndexIgnore .htaccess */.??* *~ *# */HEADER* */README* */_vti*
<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName www.somedomain.com/
AuthUserFile /home/board/public_html/_vti_pvt/service.pwd
AuthGroupFile /home/board/public_html/_vti_pvt/service.grp
# BEGIN s9y
ErrorDocument 404 /index.php
DirectoryIndex /index.php
php_value session.use_trans_sid 0wecpboard
php_value register_globals off
RewriteEngine On
RewriteBase /
RewriteRule ^(archives/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.html) index.php?/$1 [NC,L,QSA]
RewriteRule ^(authors/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+) index.php?/$1 [NC,L,QSA]
RewriteRule ^(feeds/categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-\%]+\.rss) index.php?/$1 [NC,L,QSA]
RewriteRule ^(feeds/authors/([0-9]+)-[0-9a-z\.\_!;,\+\-\%]+\.rss) index.php?/$1 [NC,L,QSA]
RewriteRule ^(categories/([0-9;]+)-[0-9a-z\.\_!;,\+\-\%]+) index.php?/$1 [NC,L,QSA]
RewriteRule ^archives([/A-Za-z0-9]+)\.html index.php?url=/archives/$1.html [NC,L,QSA]
RewriteRule ^([0-9]+)[_\-][0-9a-z_\-]*\.html index.php?url=$1-article.html [L,NC,QSA]
RewriteRule ^feeds/(.*) index.php?url=/feeds/$1 [L,QSA]
RewriteRule ^unsubscribe/(.*)/([0-9]+) index.php?url=/unsubscribe/$1/$2 [L,QSA]
RewriteRule ^approve/(.*)/(.*)/([0-9]+) index.php?url=approve/$1/$2/$3 [L,QSA]
RewriteRule ^delete/(.*)/(.*)/([0-9]+) index.php?url=delete/$1/$2/$3 [L,QSA]
RewriteRule ^(admin|entries)(/.+)? index.php?url=admin/ [L,QSA]
RewriteRule ^archive/? index.php?url=/archive [L,QSA]
RewriteRule ^(index|atom[0-9]*|rss|b2rss|b2rdf).(rss|rdf|rss2|xml) rss.php?file=$1&ext=$2
RewriteRule ^(plugin|plugin)/(.*) index.php?url=$1/$2 [L,QSA]
RewriteRule ^search/(.*) index.php?url=/search/$1 [L,QSA]
RewriteRule ^comments/(.*) index.php?url=/comments/$1 [L,QSA]
RewriteRule ^(serendipity\.css|serendipity_admin\.css) index.php?url=/$1 [L,QSA]
RewriteRule ^index\.(html?|php.+) index.php?url=index.html [L,QSA]
RewriteRule ^htmlarea/(.*) htmlarea/$1 [L,QSA]
RewriteRule (.*\.html?) index.php?url=/$1 [L,QSA]
<Files *.tpl.php>
deny from all
</Files>
<Files *.tpl>
deny from all
</Files>
<Files *.sql>
deny from all
</Files>
<Files *.inc.php>
deny from all
</Files>
<Files *.db>
deny from all
</Files>
# END s9y
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
That *vti* stuff is from frontpage. Your .htaccess also contains mainy frontpage stuff. this does not go well with s9y. What did you do with frontpage?!? This is really bad, you'll need to clear out all those frontpage references.
Regards,
Garvin
That *vti* stuff is from frontpage. Your .htaccess also contains mainy frontpage stuff. this does not go well with s9y. What did you do with frontpage?!? This is really bad, you'll need to clear out all those frontpage references.
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Ok, all cleaned out, and functioning better. But still, after I log in, when I click on any option, it goes back to the log in page. I even tried it with a different browser.....same thing.garvinhicking wrote:Hi!
That *vti* stuff is from frontpage. Your .htaccess also contains mainy frontpage stuff. this does not go well with s9y. What did you do with frontpage?!? This is really bad, you'll need to clear out all those frontpage references.
Regards,
Garvin
Current .htacces file:
Code: Select all
# BEGIN s9y
ErrorDocument 404 /blog/index.php
DirectoryIndex /blog/index.php
php_value session.use_trans_sid 0
php_value register_globals off
<Files *.tpl.php>
deny from all
</Files>
<Files *.tpl>
deny from all
</Files>
<Files *.sql>
deny from all
</Files>
<Files *.inc.php>
deny from all
</Files>
<Files *.db>
deny from all
</Files>
# END s9y
Would it have anything to do with this??
Code: Select all
INSERT INTO `serendipity_config` VALUES('serendipityHTTPPath', 'http://www.wecpboard.com/blog/', 0);
-
- Core Developer
- Posts: 30022
- Joined: Tue Sep 16, 2003 9:45 pm
- Location: Cologne, Germany
- Contact:
Hi!
If that doesn't help, and the cookie things I mentioned earlier, can you provide me with an author login so that I can test it from h ere?
Regards,
Garvin
where does it come from? What you have there as serendipityHTTPPath is invalid, it should only read /blog/, without the full URL.Would it have anything to do with this??
Code: Select all
INSERT INTO `serendipity_config` VALUES('serendipityHTTPPath', 'http://www.wecpboard.com/blog/', 0);
If that doesn't help, and the cookie things I mentioned earlier, can you provide me with an author login so that I can test it from h ere?
Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/