I added a page to my site, and suddenly the home page seems to be redirecting to that page (that is, if you go to jesseliberty, which should bring you to the home page, you are redirected to jesseliberty/newPage (the page I created).
To combat this, I've added a 301 redirect from jesseliberty/foo to jesseliberty/2010 which shows all the posts from this year, but is not, by any means, the right thing, and will truly fail in January.
Any ideas on what caused this or what I can do about it? There is nothing obvious in .htaccess
I added a page to my site, and suddenly the home page seems to be redirecting to that page (that is, if you go to jesseliberty, which should bring you to the home page, you are redirected to jesseliberty/newPage (the page I created).
To combat this, I've added a 301 redirect from jesseliberty/foo to jesseliberty/2010 which shows all the posts from this year, but is not, by any means, the right thing, and will truly fail in January.
Any ideas on what caused this or what I can do about it? There is nothing obvious in .htaccess
Share Improve this question asked Sep 13, 2010 at 20:17 Jesse LibertyJesse Liberty 1- I am unable to reproduce your problem. It looks like you solved your issue. – hakre Commented Oct 14, 2010 at 18:36
4 Answers
Reset to default 1Kelly, your page is still present in the trash bin within the page admin area. Remove it from there too and you should be fine.
I think I've had this problem before, but I can't remember exactly how I fixed it. Check a few things:
Did you recently or ever make a template/theme file called home.php? That can mess up wordpress because it thinks home means blog home not what you're thinking of as home. If you need a template for your home page you should call it homePage.php or homeTemplate.php etc.
In your dashboard check in Settings > Reading and look if you're set to "static page" that the correct pages are set as home page and posts page.
Check that your .htaccess file is writable and that the following is in it, also try turning off permalinks and see if that's the problem:
<IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
And last but not least, uninstall plugins and check if that fixes it.
Your home page response is 301 redirect to /categories/
, no ideas what is causing it for now (.htaccess? WP?).
Had you tried to simply un-publish page that is (supposedly) caused this?
Weird. I am having the same issue. I'm at kellycain and my wordpress now redirects to kellycain I tried deleting the page, and then when I re-added the page, it redirected me to kellycain/photog-2. any ideas?
发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744812679a4595149.html
评论列表(0条)