WordPress MultiSite Permalink Issue - wordpress

A little context before I get into the issue. I am building a new multisite with three sites (/, /workshops, /conference). I had permalinks set up across all three sites to be /%category%/%postname%/, and everything has been working flawlessly until today.
I know that you have to set permalinks in the Settings > Permalinks (which will forcibly add /blog before the permalink) and then go Edit it under Network Admin > Sites to remove the "/blog" portion of the URL. Things have been running smoothly for about a month, until today when I had some issues integrating DoubleClick ads. One of the trouble shooting steps is to resave permalinks, so I figured that I could just remove /blog again after attempting to save permalinks. As soon as I did this, literally everything broke. I can barely get anywhere on the site, and get 404 errors everywhere. If I add /blog/category/categoryname manually, then it will find the correct archive page / post about half the time. My next guess is that my Yoast was somehow jacking everything up, so I simply disabled it for the time being and went back and resaved everything (making sure that removing /blog was the last step in the process) but they are still broken, even with Yoast disabled.
Finally, I figured that I would just go grab the "Network Setup" htaccess instructions again, just in case they got corrupted somehow, but still having no luck.
The preview is currently at: http://vb7q-flpc.accessdomain.com/, however I have it currently using the /blog url so I can continue to work on it until I figure this out.

Related

Wordpress site - too many redirects when selecting link

I have looked at similar questions but still receive the redirect error.When landing on a homepage URL the site resolves and displays for example http://www.test.co.uk . When selecting any link ie. http://www.test.co.uk/products the browser throws a "Too many redirects" error and the site become unusable. The only way I can get it back up is by clearing cookies and cache and trying again. What I find really confusing is that copying the http://www.test.co.uk/products link or manually typing the URL in resolves the URL correctly and I don't get "too many redirects" error. It only happens when I select a link.
I have tried the following:
Renamed the "plugins" directory to "plugins1" to disable the plugins
Reverted to the default wordpress ".htaccess" file
Ensure the site settings URLS matched in wp-admin area
SSL is enabled on the site but not configured to be used anywhere, all links (that I'm aware of reference http://)
Checked any redirects on the hosting via CPANEL (none exist)
Added these to the wp-config file
define ('WP_HOME','http://www.test.co.uk');
define('WP_SITEURL','http://www.test.co.uk);
I'm not sure whats changed in the last couple of days but we think a plugin got updated. Would disabling the plugins prove that its nothing to do with plugins?I'm new to WordPress so apologies if I got some terms wrong.
Any suggestions I could try looking at would be helpful.
Thanks
try to set Home url and site url to http://www.test.co.uk from your WP admin panel

One page won't show on wordpress after moving from live to localhost

I moved my website from live to localhost to make some modifications to it and I have encountered a problem, one page will not show up: "Oops! That page can’t be found.".
I have tried the following
1. activated rewrite_module
2. deactivated each plugin to see if anyone is causing the problem
3. recopied the database and files in case of failure during the first transfer
4. read that resetting permalinks might solve the problem. Changed permalinks to default - the page now works, but when I changed back to custom the problem is still there.
This is weird because only one page does not seem to show, every other page works fine and also there is no problem on the live version.
I ran out of solutions can any one please help?
This may be caused by the permalink or .htaccess
check the url of your page if no issues on URL then
Follow this steps once:
Go to settings-> permalink-> set it as default ->Reload or refresh
Then again now Go to settings-> permalink->postname
Your .htaccess will get update with the permalink.
This could be a problem with htaccess. When using the query string urls in wordpress, no htaccess is required, but for anything else Wordpress uses mod_rewrite.
Is htaccess turned on your localhost Apache server? In httpd.conf, AllowOverride All should be turned on in your active directory.
Is Wordpress able to create new files? Insufficient permissions might prevent it from creating the htaccess file.
Finally, check that your links are pointing to the right place. Sometimes the problem is as simple as a misspelling in your link ;) Good luck.

404 on taxonomy links on Wordpress site

I've read a lot of different posts online on this, but nothing seems to be working.
I'm working on a Wordpress site. Despite individual post links working exactly as intended, (e.g. http://ubicomplab.org/people/jwu), the main taxonomy pages, http://ubicomplab.org/people, etc. redirect to 404.
I have tried modifying .htaccess, deleting .htaccess, disabling plugins, but nothing seems to work. I have also tried rolling back the contents of wp-content to way before this error started occurring, to no effect.
Upon trying to "Edit Page" the 404ing link above, I get an error about how "post 422" is in the trash. There are no posts in the trash, however. I'm not sure why it's specifically post 422.
Could there be something wrong on the server side? If so, what could I do? I have access to the kettle server, but I'm not sure where to begin looking.
Try savings your permalinks again, sometimes this works for me.

Tried to Move Wordpress from Subdirectory to Domain, Site Broke

I tried to move my beta Wordpress site to my live domain, and now everything's broken. I have no idea how to fix this. Here's what I did:
I had a site running at mydomain.com, but I wanted to rebuild it. So I downloaded a new installation of WordPress at mydomain.com/test and built a new theme.
I finished the new theme and was ready to move it to mydomain.com. I decided to leave everything in the subdomain for the move, so I followed these instructions.
It worked fine. Mydomain.com was displaying the new site.
Then, I stupidly decided that I wanted to rename the subdirectory from /test to /v2 (because I wanted a cleaner name and I wanted to leave /test open for testing rather than use it for my new site).
Everything broke.
I tried to change the subdirectory back to /test because the site was working with that, but everything is still broken. The theme doesn't seem to be loading. My site is not displaying any styles. My photos aren't displaying correctly. My plugins are gone.
Is there any way to fix this? Please tell me I didn't just lose 3 months of work...
This is my site.
The database,will have the url set to mydomain.com/test
you will need to update the db entries see below script
http://dan.doezema.com/2010/04/wordpress-domain-change/
Sounds like you need to update your siteurl and home values in your Wordpress Database. Log in to your cPanel and go to phpMyAdmin. From there you should be able to open your WordPress MySQL Database.
Go to your wp-options table and make sure that your siteurl (option_id 1) and home (option_id 37) values are using the correct path ie http://mcography.com/test
You may also need to update your permalinks. Even though you don't have to change any options, saving the permalinks again should refresh your .htaccess file.

wordpress permalinks not working 500 error

i made a mess of some kind my website was running perfectly but i did some changes to wpconfig i cant seem to remember and the result is that if i dont use permalinks and use simple page id the whole website works and if i try to use permalinks all the individual links break but home page as well as admin panel keeps working .
It always gives 500 internal server error
Any one got any ideas what could have gone wrong .
P.S.> I have deleted .htaccess and created a new one and copied the code given by wordpress but its still not working.
my website is NewsKase
I had the same problem. My WordPress site was running perfectly until I changed my permalinks. All my individual links break but the main page as well as admin panel keeps working. When I use simple page id as permalink the whole website works.
The are several thing that can cause this problem. The following post lists some possibilities you can go through to find the root of your permalink problem.
https://economictheoryblog.com/2016/07/29/self-hosted-wordpress-permalink-problems/
Try the following:
Get a fresh copy of wp-config.php and enter in your DB details
(username, pw, name, table prefix).
Delete htaccess file
Regenerate permalinks (admin - settings - permalinks)
Ensure server has mod-rewrite on

Resources