Changing directory now cannot get into admin
-
I was trying to follow directions from http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory to redirect from a pre-existing subdirectory to the root directory. I made a mistake in the index.php:in copying, adding a line, and moving it. Now I cannot access the site nor the wp-admin.
My install is at: im.mikediane.com/wp
The root directory I was trying to use was: im.mikediane.com
I had changed the site address on the General panel.Can anyone please help?
Thank you,
Diane
-
Edit: didn’t mean to duplicate, I guess jackie posted while I was writing.
Diane, you can indeed log in, as I said in my prior post, by going to:
http://im.mikediane.com/wp/wp-login.phpWhen I use the above link including: wp/wp-login.php, I just get the home page of my site without the template.
I get the login screen with no css.
Have you tried clearing your browser cache and clearing all cookies?
Also have you looked into the site_url and home url options settings in the database?
http://codex.wordpress.org/Changing_The_Site_URLO, sorry, santeven, would you like me to exit–stage left? I can.
Also, Diane, could you explain “I get the content but no template?” I’m afraid I’m a bit lost there.
Hi Jackie and Martin,
I have cleared the browser history and cache, then used the links above. I indeed get to a page with the log in form (it is without any css), but when I enter my user name and password, it just takes me to the home page of my site without the css. It is ugly.
Yes, Jackie, PW does stand for Peter’s Wife. My husband is not Peter, however. It is a code name for those living and working cross culturally. No matter, the reason for the name, I’m glad you are willing to stick with me until I get this solved.
Martin, I will try changing the site-URL in the database.
Thanks to both of you!
DianeHere I go again. I’ve made another mistake! Yikes!
I went to the codex “Changing the Site URL” I didn’t read down the page far enough to see changing the url in the database. I followed the directions to change the URL by editing the functions.php. I put the two lines in that it asked for:
update_option(‘siteurl’,’http://example.com’);
update_option(‘home’,’http://example.com’);
with my site url in place of ‘example’, and saved it to the correct folder.I got a blank page whenever I tried to go to the site or admin page. So I took out the two lines and saved again. I again get a blank page now for all the different combinations of url.
Now I cannot even get to my database through phpmyadmin on my cpanel.
I am so sorry.
Can you help? Or have I made too much of a mess?
DianeI suspect there are 3 separate yet interrelated issues you will need to address, and in the following sequence:
- the two database option settings
- having the proper index.php and .htaccess files in both the rootdir and the subdir
- having manually updated to the latest WordPress version
1
Taking out the two line from functions.php does not change back the settings.My install is at: im.mikediane.com/wp
The root directory I was trying to use was: im.mikediane.comThis means your lines in the functions file should be:
update_option('siteurl','http://im.mikediane.com'); update_option('home','http://im.mikediane.com/wp');Please attempt this much only and let;s see what happens
Diane, could you describe your folder structure for us? I know you’ve got a couple websites going. Are these on the same server? Do you perchance have a .htaccess file in the web root folder? I know–I’m just full of questions & I’m not giving many answers, for which I apologize.
If in fact you’re not able to log into the dashboard using the login form, then perhaps there’s a theme or plugin conflict. Renaming the wp-content/themes folder to themes1 or themes.old will break the public facing site, but it might allow you to log into the dashboard & set the site to a WordPress default theme. You could also try renaming the plugins folder to plugins1 or plugins.old & see if you can log in. If so, then rename the plugins folder back to the original name, but change each plugin folder inside to have a 1 or a .old on the end, except 1. That 1 should likely be Akismet, as it ships w/WordPress & is less likely to be the cause of any incompatibilities. Rename the plugin folders successively, logging in after each rename until the offending plugin halts your progress.
Let us know where we are.
Diane, could you describe your folder structure for us?
Yes, good idea by Jackie, to ask about the host directory structure.
Also, please tell us every website address you expect is on the host?
When I go here I get the normal login screen.
Hi Martin,
I put the two lines you gave me in the functions.php.
Now when I try to go to : http://im.mikediane.com, I get the message that it is waiting for im.mikediane.comWhat is the next step?
Hi Jackie and Martin,
I have one server: mikediane.com. On that server, I have a WP install that is merely a portal for our subdomains.This part is running well, both wp-admin and web pages.I have three major subdomains on that server. They are:
pw.mikediane.com with its own wp install. It is working fine, both the wp-admin and web pages.
fst.mikediane.com with its own wp-install. It is also working fine, both the wp-admin and web pages.
And im.mikediane.com. I incorrectly installed the wp on im.mikediane.com/wp. I really dislike having to have the /wp and have wanted to get the url simplified. That’s what started this whole mess.
There is an htaccess file under the public_html for the root of the entire site.
I have a number of small subdomains and all is well with them too. These are mostly inactive, but still in the structure.Here they are:
DianeBeth, family, intermin, prayer, pw_3rdApril2013, westsub, YourChildsJourneyI hope this helps. If there is anything else you need to know, I’m glad to tell you.
Hi Radices,
I have no trouble getting into the log in for mikediane.com, it is for the subdomain, im.mikediane.com that I just get a blank screen.Thank you all!
DianeDiane, When I go into
http://im.mikediane.com/wp/wp-login.php
I get:Intermin
UsernamePassword
Remember Me
Log In
Lost your password?
← Back to InterminIs that what I’m supposed to get?
Also, can we see your .htaccess file at the root of your site?
Lastly, could you please explain:
“On that server, I have a WP install that is merely a portal for our subdomains.”Is this a multi-site install?
Diane, I’m going to back up and ask you a few basic questions. Sorry if I might have missed the answers up above, this has become an extremely long thread. Also, please refrain from any further modifications while I attempt to glean and organize some essential information.
Please tell me who is your hosting providor?
What do you have for a host control panel? Is it a cPanel? Or is it a Plesk panel? Or is it something else?
To look at folders and files and to edit files, Do you utilize an ftp client like filezilla? Or do you only utilize the “file manager” within your hosting control panel? Or is it both?
Please bear with me, I trust we will sort it out. And I expect I will have another series of questions after you might provide answers to these.
Hi Martin,
My hosting provider is Exebytes.com
I have cPanel
I use FilezillaHi Jackie,
When I go to: http://im.mikediane.com/wp/wp-login.php, I get a page with no formatting and just the info you mentioned. When I put in the user and pw, I get a 404 error message.When I go to: http://im.mikediane.com/wp-login.php, it goes directly to a 404.
I think my terminology is in error. We have a business hosting plan where we can have multiple subdomains. Our main domain is: mikediane.com, all the others are subdomains. It is not a multi-site install.
Thanks again to both of you!
DianeHi Jackie,
The htaccess file on mikediane.com is:
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule># END WordPress
I hope this helps.
DianeI don’t know where you are in the world. I’m in SE Asia, my daytime is probably your night. I’m heading to bed, will check this in the morning for the next step.
Thanks,
Diane
The topic ‘Changing directory now cannot get into admin’ is closed to new replies.