If you want to have your WordPress in a different folder, you need to follow a few steps.
Please review this link – http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
Thank you but this is not related to my situation. I did not move anything recently. My index and htaccess files already look like what is mentioned in the link provided above. my problem started when i set a static front page recently. the Site URL keeps changing on it’s own in general settings. it will work fine for an entire day, then the next day the Site URL has reverted to the address with /blog at the end.
Thank you for any insight.
jimmy
Have you tried:
– deactivating all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one until you find the problematic plugin(s).
– switching to the Twenty Eleven theme to rule out any theme-specific problems.
– resetting the plugins folder by FTP or PhpMyAdmin. Sometimes, an apparently inactive plugin can still cause problems.
thank you. i just did all these. i only have 5 plugins activated, so that was quick and easy. no luck.
I already use twenty eleven theme.
it definitely happens every single time i log out as the admin. meaning i am logged in, change the site URL and save. it works fine. if i log out the site goes into that weird endless loop assigning the link to the actual blog as /blog/blog in the browser address bar. when i log back in the Site URL has changed on it’s own again from http://www.wintercarnival2012.com to http://www.wintercarnival2012.com/blog.
thank you for any insight.
jimmy
Did you try resetting the plugins folder?
i just followed the instructions to reset the plugins folder. nothing changed.
thank you.
jimmy
Have you checked the site_url and home_url fields in the wp_options table of your database when the url changes?
when i logged into myphp and looked at wp_options, the first one is site url. it is set to the address with /blog at the end, which is not what it says in general settings. when i log in to wordpress and look at my general settings it is just the site without the /blog in the address.
did i look at the proper field? and if so, what does this mean? that the database is never changing the site URL no matter what i do in general settings?
this feels like it might be something…
thanks!
jimmy
which is not what it says in general settings
That’s interesting. At least it rules out any database issues. I can currently access the site at both urls:
http://www.wintercarnival2012.com/
and
http://www.wintercarnival2012.com/blog/
Am I right in assuming that you originally installed WP in a blog sub-folder? If so, how did you you configure WP to take over the toor domain?
the main page is supposed to be a static front page. the /blog is supposed to be the latest blog entry posts. i configured this through settings>reading.
each of the 2 links you typed above should be different things.
i feel like it does not rule out DB issues. the info in the database is not changing no matter what i do in general settings.
WP was originally set up in the blog subfolder, yes. toor domain? not sure what you are asking.
thanks!
ps- i used this guide to create the static font page http://codex.wordpress.org/Creating_a_Static_Front_Page
If WP was installed in a blog sub-folder, then you need to see See Giving_WordPress_Its_Own_Directory if you now want it to take over the root domain. Just changing the site url is not the way to do it. You are really lucky that your site didn’t just fall to pieces immediately.
it’s not that i “now” want it to take over the root domain. it has always been in blog subfolder and the htaccess was originally edited to ./blog/wp-blog-header.php
where i was instructed to do that. i haven’t changed anything with file locations. the only thing i have done differently is want there to be a static font page the other day. i followed all the instructions in giving wordpress its own directory when i originally set up WP.
does the fact that site url is not changing in the database mean anything?
thanks!
ps- i was wrong about something. the home url in the DB options does change every time it changes in the general settings. i was looking at the site url, it was not changing, but home is definitely changing everything i log out and back in.
thanks
it has always been in blog subfolder and the htaccess was originally edited to ./blog/wp-blog-header.php where i was instructed to do that.
That’s where it’s all going wrong in my opinion. You seem to have gotten some bad advice. You need to undo all of those changes, so that the site reverts back to http://www.wintercarnival2012.com/blog/ and then see the page I linked to above. I’d also ensure that your main posts page isn’t called “Blog” as this could also create issues.
all the advice i followed came from the wordpress support pages. how to install it into it’s own directory and how to set up a static front page. the main post being called “Blog” is what the wordpress support page for static front page said to do.
again, i have not really “changed” anything, it is the way it was set up originally. i am open to try anything though. any suggestions on how to undo as you said, or redo everything? should i start from scratch?
thanks so much!
the main post being called “Blog” is what the wordpress support page for static front page said to do.
Not if you’ve installed WordPress in a sub-folder called blog and have custom permalinks set up. That will cause rewrite issues.