Try setting the urls back with one of these methods:
http://codex.wordpress.org/Changing_The_Site_URL
Thanks a ton keesiemeijer, the site is back.
But I am not able to any other page except the home page, I think that is because before changing the site URL I had changed the default permalinks settings to Post name setting, so I think unless I set that back to default as well I wont be able to access the site properly.
How could I set permalinks settings back to default?
Update
Could I change the permalinks setting somehow in any configuration file or database?
Can you log in? If so, try re-saving the permalink structure at Settings > Permalinks in your admin panel. WordPress will rebuild the .htaccess file. If WordPress cannot automatically edit the .htaccess file, it will provide manual instructions after saving.
Thanks for the reply again keepsiemeijer.
No, I can’t login. When I try to access the page http://localhost/mysite2/wp-admin it redirects me to the page that should not be working because I had changed the permalinks setting from Default to Post name just before I changed the site URL.
π
Any change I could reset the the permalinks setting back to Default?
Update
http://localhost/mysite2/wp-admin was not working even before I changed the site URL because I had changed the permalinks setting from Default to Post name.
Try:
– renaming or deleting the .htaccess file. If you delete it make a backup first.
Oh, I think admin panel should not have got affected due to changed settings in permalinks.
I am sorry, am very new to wordpress.
Why could I not get the login back back if changing permalinks setting shouldn’t have made any difference to admin panel?
I am working on the local computer, I don’t have the .htaccess file.
Oh, again, am sorry, I just found an htaccess file inside my project folder.
Ok, I think that was because I had theme-my-login plugin installed, which after removing from the plugin folder and trying to access http://localhost/mysite2/wp-admin I go get prompted for loggin back in.
After logging in and changing the permalinks setting back to default, the site is back again with admin panel working just fine.
Thanks a million π
No problem π
To move your site properly see:
http://codex.wordpress.org/Moving_WordPress
http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory
What software do you use to run your localhost? Maybe you need to enable mod_rewrite for it to work.
Yep, those two links look like a must read. Thank again.
I use Apache 2.2 + PHP 5.3.10 + MySQL 5.5 all separately.
I also use phpmyadmin separately whenever needed.
Yep, I have never used mod_rewrite but I see its a handy engine for URL rewrites.
Many thanks for your suggestions.
Just a final question if I could ask, off topic though, How could make those permalinks human readable(E.g. Post name format in wordpress) once pages have already been made using the Default option of permalinks?
Again, thanks :).
Just a final question if I could ask, off topic though, How could make those permalinks human readable(E.g. Post name format in wordpress) once pages have already been made using the Default option of permalinks?
After you’ve enabled mod_rewrite you can set the permalink structure in Settings > Permalinks. This will also work for pages that have already been made.