Yesterday, I created a blog for my site ayurprakash.com. All I did was
installing another wordpress in the existing one and replacing the
domain with blog.ayurprakash.com. I made changes in the settings for
the site and wordpress url and changed the url to
www.ayurprakash.com/blog. I installed several plugins and altered some
code inside blog folder. But now, when I run the url
www.ayurprakash.com/blog/wp-admin.Nothing appears. I changed the url
to www.ayurprakash.com/blog/wp-login.php. the front panel is opening
asking for username and password. But when I clicked the submit
button, nothing is displayed except the text--"Blocked". What should I
do in this case?
Try to turn WP_DEBUG in wp-config to true (located on line 81) and after trying to log in it will direct to the offending piece of code. Then remove that code.
Related
I have installed wordpress inside one folder called blog. when we open the blog, the blog links are broken 404 page error. How do i fix this issue, if its installed on root directory it will work, but this time it is directory, Is there any way to fix this issue
Normally such issues can be fixed easily by refreshing your permalinks. To do that go to WP > Settings > Permalinks and click on the save button once.
On some servers it is not allowed to edit .htaccess by clicking save in that section, therefore if you get an error; contact your hosting provider.
You may also want to check that the URL of your site corresponds to the URLs shown inside of WP > Settings > General.
First ensure your server support rewrite_ module
1.Login your WordPress dashboard
2. Click Settings
3.click Permalinks and change your permalink then click save
I made a mistake by erroneously changing the site URL in general settings in Wordpress.
My website pages would load but I got a redirect loop back when trying to login on the wp-admin page.
To fix this I accessed my wp-config.php via SSH and added the following:
define('WP_HOME','http://swsportpsychology.co.uk');
define('WP_SITEURL','http://swsportpsychology.co.uk');
Now my website still loads as before but the wp-admin page will not load at all, so I cant login and it says cant access server.
How should I fix this? Any ideas?
Update
I have also added this to my themes functions.php:
update_option('siteurl','http://swsportpsychology.co.uk');
update_option('home','http://swsportpsychology.co.uk');
But still no fix.
Try adding this to your functions.php in your theme:
update_option('siteurl','http://swsportpsychology.co.uk');
update_option('home','http://swsportpsychology.co.uk');
I changed my domain name for my website and I double checked with the migration document on Wordpress, everything is as it should be.
Problem:
When permalinks is set to default:
all pages work, expect for a button on homepage which sends me back to the homepage but updates URL.
For Example: Im on example.com and i press search button>> URL changes to example.com/search but im on the same homepage. I press it again, URL becomes example.com/search/search. Interesting and Frustrating.
When permalinks are set to other settings like day, month:
Some pages redirect to old domain. Example: if i click on search on my website , it will take me to oldexample.com/search. when i manually update URL to example.com/search, I can see the page. BTW, oldexample/search gives me nothing.
**New Problem:**Recently, I activated all in one seo and sitemaps dont work with default permalinks.
Example: example.com/sitemap.xml gives me my homepage instead of the sitemap page. When i change the permalinks to other settings, I can see my sitemap.
I mean, what is this??
PS: Its a multisite installation with ONLY 1 SITE. and I had W3 cache, deleted it. problem exists.
PSS: when i submit my sitemap.xml to google with default permalinks, it says its HTML. so i changed permalink to date month and submitted; Successfully.
Using the "search and replace" script, I updated my links. Uploaded the script to the folder containing wp-admin, wp-include and the likes. Followed the instructions and clicked on dry run.
I found that my wp-postmeta contained some old urls. Updated just that 1 table and that did the trick.
Use a Search and Replace DB script if you are transferring a wordpress site (along with the database) to another domain.
The DB contains links from old domain, so you need to replace the old ones with the new ones. Just be careful and make a DB backup just in case.
This script is a great tool if you are creating a WPMU sites. Just copy the site and to a subdirectory (/en, /de, whatever your name domain is), import the old DB to the new one, and run this script before you've entered the site.
It is crucial not to enter the new site before running the script so that all the old links will be picked up correctly by it. After you've replaced it, you're good to go.
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
I have wordpress website on server, created pages and that's working fine, but when I download wordpress files and DB on local and want to run with localhost, permalinks for pages are not working.
It seems this is an old post, but this might help others that encounter same error.
Select:
Apache –> Apache Modules –> and that will display the lists of available modules.
Now just check rewrite_module.
source from WordPress Custom Permalink not Working in Localhost
Hope that helps.
Sometimes when copying from one server to another, wordpress' permalinks goes a little screwy, try setting them back to default (using the admin panel) and then setting them again to your desired permalink structure (being sure to apply the changes each time).
you need to go into the database and change a few options.
Goto your phpmyadmin installation and navigate to wp-options table. Change the siteurl and home options to your localhost address.
Wordpress needs these database tries to build your permalinks. If they are wrong, then it will direct your links to incorrect locations.
You can simply fix this by doing the following:
Go to settings in your WordPress site.
click on permalinks ( You will see the URL structures of your newly configured WP site. (if it shows your original website values, go to settings-> general and set your local site URLs
Don't do any changes, just click on the Save button.
Refresh your local site and click on your page link or post.