• Hi,

    I spent months working on a new site at dev.dentistryon7.com/wp to replace an older site at https://www.dentistryon7.com that was done not using wordpress.

    I tried following this guide, but unfortunately made a huge mess https://userguide.expand2web.com/moving-wordpress-from-a-sub-directory-to-the-root/

    I completed step 1.

    When I tried step 2: I got some kind of error (maybe because there was still content on the root domain which I was trying to point wp towards?) Nonetheless I continued to step 3…

    I deleted all the files and folders for the old website into the trash (not deleting permanently if that matters), and moved my wp folder into the public_html folder. It did not work (I could only see the directory). I then tried to move just the contents of the wp folder into the public_html folder and that did not work, I would just get a blank webpage.

    My files are a mess (some old wp stuff was lying around the file manager), I don’t know what’s what. I tried restoring things from the trash which made things worse.

    Whats the easiest way to resolve!!

    Thanks

Viewing 11 replies - 1 through 11 (of 11 total)
  • Thread Starter csigabiga83

    (@csigabiga83)

    Oh and now I can’t get into my WordPress settings / dashboard since I can’t find the site anywhere ??

    Thread Starter csigabiga83

    (@csigabiga83)

    FWIW, right now the contents of my public_HTML folder:

    wp folder (wp admin. .DS_store, .htaccess, error_log, index.php, license.txt, readme.html, wp-activate.php, wp-blogheader.php, wp-comments-post.php, wp-config-sample.php, wp-config.php, wp-cron.php, wp-links-ompl.php, wp-load.php, wp-login.php, wpmail, wpsettings, wpsignup, wptrackback, xmlrpc)

    wp admin (bunch of folders/files in here)

    wp-content

    wp-includes

    .DS_Store

    .htaccess

    This is me drowning and panicking everyone. I’m a total newbie and I just destroyed my website with no idea how to recover.

    Frustrated Drowning Newbie

    Thread Starter csigabiga83

    (@csigabiga83)

    Update:

    My public_html folder now contains the files/folders below: These are files I restored and moved from trash that I know from my backup on my cpu were what my site was made of. Still when I go to https://www.dentistryon7.com the site is blank. I can’t login to wordpress

    wp-admin
    wp-content
    wp-includes
    index.php
    license.txt
    readme.html
    wp-activate.php
    wp-blog-header.php
    wp-comments-post.php
    wp-config-sample.php
    wp-config.php
    wp-cron.php
    wp-links-opml
    wp-load
    wp-mail
    wp-settings
    wp-signup
    wp-trackback
    xmlrpc

    Can you share the error log?

    Also share content of your .htaccess folder placed in your public_html folder.

    Thanks.

    Thread Starter csigabiga83

    (@csigabiga83)

    .htaccess file (not folder) was in the trash. I restored it to public_html folder and now I have access to my WordPress dashboard and settings.

    In Settings, my WordPress and Site address are both pointing to the right place (https://www.dentistryon7.com) however, when I go the website, I get an internal server error (you can see this yourself).

    Below is the content of my .htaccess however I’m not sure how to share the error log: If you can explain how, I’ll be glad to do so. Thank you kindly for your assistance!

    suPHP_ConfigPath /home/dentis81/php.ini

    <IfModule mod_deflate.c>
    AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
    AddOutputFilterByType DEFLATE application/xhtml+xml application/rss+xml application/atom+xml
    AddOutputFilterByType DEFLATE image/x-icon image/svg+xml application/vnd.ms-fontobject application/x-font-ttf font/opentype
    </Ifmodule>

    # cache images/pdf docs for 10 days
    <FilesMatch “\.(ico|pdf|jpg|jpeg|png|gif)$”>
    Header set Cache-Control “max-age=864000, public, must-revalidate”
    </FilesMatch>

    <IfModule mod_rewrite.c>
    RewriteEngine On

    Redirect 301 /staff.html https://www.dentistryon7.com/
    Redirect 301 /staff.htm https://www.dentistryon7.com/
    Redirect 301 /sharon_enenkel.html https://www.dentistryon7.com/
    Redirect 301 /services.htm https://www.dentistryon7.com/
    Redirect 301 /ricky_kwan.html https://www.dentistryon7.com/
    Redirect 301 /photos.htm https://www.dentistryon7.com/
    Redirect 301 /paulette_pillersdorf.html https://www.dentistryon7.com/
    Redirect 301 /Paulette_Pillersdorf.html https://www.dentistryon7.com/
    Redirect 301 /marlene_wilson.html https://www.dentistryon7.com/
    Redirect 301 /kim_van_praagh.html https://www.dentistryon7.com/
    Redirect 301 /dorothy_carr.html https://www.dentistryon7.com/
    Redirect 301 /dentures.htm https://www.dentistryon7.com/
    Redirect 301 /denture_services.htm https://www.dentistryon7.com/
    Redirect 301 /dental_hygiene.htm https://www.dentistryon7.com/
    Redirect 301 /contact_us.htm https://www.dentistryon7.com/
    Redirect 301 /about_us.htm https://www.dentistryon7.com/
    Redirect 301 /indexgus.htm https://www.dentistryon7.com/

    RewriteBase /

    #RewriteCond %{HTTP_HOST} !^www\.
    #RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

    RewriteRule ^$ /home.html
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /main.php [L,QSA]
    </IfModule>

    #<IfModule mod_rewrite.c>
    # RewriteEngine On
    # RewriteBase /
    # RewriteCond %{REQUEST_FILENAME} !-f
    # RewriteCond %{REQUEST_FILENAME} !-d
    # RewriteRule ^(.+)$ /index.php/$1 [L,QSA]
    #</IfModule>

    Thread Starter csigabiga83

    (@csigabiga83)

    Not sure if this is relevant, but I found I also have an .htaccess.1 file that looks like below:
    I also have a few more .htaccess files throughout my cpanel in folders from an older website that were still on cPanel

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{QUERY_STRING} !lp-variation-id
    RewriteRule ^go/([^/]*)/([0-9]+)/ /go/$1?lp-variation-id=$2 [QSA,L]
    RewriteCond %{QUERY_STRING} !lp-variation-id
    RewriteRule ^go/([^/]*)? /wp-content/plugins/landing-pages/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L]
    RewriteRule ^landing-page=([^/]*)? /wp-content/plugins/landing-pages/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress

    Thread Starter csigabiga83

    (@csigabiga83)

    These error_log files are starting to show up in my public_html file as well

    [18-Aug-2015 06:11:35 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [18-Aug-2015 06:11:49 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [18-Aug-2015 06:11:52 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [18-Aug-2015 06:14:49 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0
    [18-Aug-2015 06:15:06 America/New_York] PHP Warning: PHP Startup: Unable to load dynamic library ‘/usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so’ – /usr/local/lib/php/extensions/no-debug-non-zts-20100525/imagick.so: cannot open shared object file: No such file or directory in Unknown on line 0

    When I visit your site or wp-admi, it shows blank page.

    Can you disable all plugins and then try to load your page.

    Also create a backup of your existing .htacess and start with this basic .htacess file for WordPress:

    # 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

    And then check. Thanks

    Thread Starter csigabiga83

    (@csigabiga83)

    Hi Meraj,

    I also could no longer get into my dashboard, or main page.

    I did what you suggested with the code but still no luck.

    Current files in public_html folder:

    wp-admin
    wp-content
    wp-includes
    htaccess (as you suggested above)
    error_log (as detailed in a post above)
    index.php
    license.txt
    readme.html
    wp-activate.php
    wp-blog-header.php
    wp-comments-post.php
    wp-config-sample.php
    wp-config.php
    wp-cron.php
    wp-links-opml
    wp-load
    wp-mail
    wp-settings
    wp-signup
    wp-trackback
    xmlrpc

    In my trash I have many files, some from the old website, some probably from the one i re-did including

    cgi-bin
    .DS_Store
    .DS_Store1
    .ftpquota
    .htaccess (# BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /wp/
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{QUERY_STRING} !lp-variation-id
    RewriteRule ^go/([^/]*)/([0-9]+)/ /wp/go/$1?lp-variation-id=$2 [QSA,L]
    RewriteCond %{QUERY_STRING} !lp-variation-id
    RewriteRule ^go/([^/]*)? /wp/wp-content/plugins/landing-pages/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L]
    RewriteRule ^landing-page=([^/]*)? /wp/wp-content/plugins/landing-pages/modules/module.redirect-ab-testing.php?permalink_name=$1 [QSA,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /wp/index.php [L]
    </IfModule>

    # END WordPress)

    .htacess1.1 (same as above)
    .htacess.bk (which contains text mentioned by me few posts above with the multiple redirect 301s)

    Thread Starter csigabiga83

    (@csigabiga83)

    Still panicking here :/

    Any other suggestions?

    Please follow the following steps:

    1. If you put a simple index.php which contains nothing but something like:

    <?php echo "hello world!" ?>

    See if that works. If that’s the case then your server is correctly rendering php.

    2. It is possible that when copying your files to root it missed some files and now you are having this issue. One solution for this is to take backup of your current folder and database and go with a fresh installation and then see how it goes.

    3. Check your database and make sure it is correctly set to root domain e.g. https://www.dentistryon7.com/

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘Destroyed my Website while moving Subroot to Root’ is closed to new replies.