I have a site here: http://www.m2comm-semi.com/new that decided to move here: http://www.m2comm-semi.com/

I followed this tutorial:


  1. I deactivated the permalinks
  2. Changed this line:

    /** Loads the WordPress Environment and Template */ require('./new/wp-blog-header.php');

Of the index file located in my root folder (initially I was using wordpress):

enter image description here

The main page works but when I want to access the admin: http://www.m2comm-semi.com/wp-admin I get a 404 Not Found.


I even did this trick in function.php of the new folder:



Didn't work either. What should I do?


You're almost there, it's just the other way around:


WP_HOMEis the URL where the actual files are and WP_SITEURL is the URL under which you access the site. Also be aware that this doesn't go in the functions.php but in the wp-config.php

The Admin is always accessible via the actual location of the files, so in this case:


Some more info in the Codex:


  • So I can't access my admin at m2comm-semi.com/wp-admin with this technique? – janoChen Jul 21 '15 at 10:54
  • No, but once this is set up properly as explained WordPress will be smart enough to redirect you if you access that address. – kraftner Jul 21 '15 at 12:17
  • So what am I missing? To set it up in a proper way? – janoChen Jul 22 '15 at 2:30
  • Oh I thought you're just asking and haven't tried yet. – kraftner Jul 22 '15 at 7:45
  • Never mind. http://www.m2comm-semi.com/wp-admin started working...after a day. Weird. – janoChen Jul 22 '15 at 11:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.