• Resolved Oded Ben-Ami

    (@oded-ben-ami)


    Hi,

    I used the following instructions to relocate my WordPress website from
    odedbenami.com/wordpress to odedbenami.com

    https://codex.www.ads-software.com/Giving_WordPress_Its_Own_Directory
    ( Using a pre-existing subdirectory install )

    Now I can only see my home page at odedbenami.com

    All other links generate the following error message:

    <quote>
    Internal Server Error

    The server encountered an internal error or misconfiguration and was unable to complete your request.

    Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

    More information about this error may be available in the server error log.

    Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request.
    <end quote>

    Please help.

Viewing 15 replies - 1 through 15 (of 17 total)
  • Can you get into the Dashboard? If so, try visiting Settings > Permalinks and pressing Save changes.

    Also if you can login to the dashboard take a look at the settings and make sure that it is the correct WordPress Address (URL) and Site Address (URL). It would probably generate a 404 page instead of a 500 page though but it’d still be something worth checking.

    Anonymous User 9105421

    (@anonymized-9105421)

    Perhaps still need to update your .htaccess?

    <IfModule mod_rewrite.c>
     RewriteEngine On
     RewriteBase /
     RewriteRule ^index\.php$ - [L]
     RewriteCond %{REQUEST_FILENAME} !-f
     RewriteCond %{REQUEST_FILENAME} !-d
     RewriteRule . /index.php [L]
    </IfModule>

    The RewriteBase /

    Thread Starter Oded Ben-Ami

    (@oded-ben-ami)

    I can login to my dashboard.
    Going to settings > permalinks

    Just below “save changes” I get the following message:

    If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    What should I do with this?

    Thread Starter Oded Ben-Ami

    (@oded-ben-ami)

    I can login to my dashboard.
    Going to settings > permalinks

    Just below “save changes” I get the following message:

    If your .htaccess file were writable, we could do this automatically, but it isn’t so these are the mod_rewrite rules you should have in your .htaccess file. Click in the field and press CTRL + a to select all.

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    What should I do with this?

    It sounds like a permission issue with the .htaccess file. Can you login to your site via FTP?

    Like Julian says, if you can login to your site via FTP and paste the code it’s given you into your .htaccess file that should resolve your issue.

    Thread Starter Oded Ben-Ami

    (@oded-ben-ami)

    I am logged into my site via Cyberduck.
    I tried editing .htaccess with the new info but it didn’t register save.
    The permissions are 644 and I cannot change them.
    I right-click .htaccess, then click permissions and add two checkmarks on write for group and for others, but it doesn’t reflect in the file list.

    Anonymous User 9105421

    (@anonymized-9105421)

    I’m not familair with Cyberduck, when it can not edit and save online you could try FileZilla:
    https://filezilla-project.org/download.php?type=client

    You could also try download the .htaccess file to your computer and edit it there and then reupload.

    Probably better not make your .htaccess permanently writeable on your server.

    Thread Starter Oded Ben-Ami

    (@oded-ben-ami)

    OK, I figured it out.
    I had to rename .htaccess to htaccess.
    I was then allowed to edit the contents and save it.
    My website is now back up in the root directory.

    Still, the message in settings > permalinks did not disappear.

    Also, the .htaccess file that I originally copied from the wordpress folder, is not longer there.

    Also you could try copying everything in the .htaccess file and make an entire new file out of it then upload and rename it to .htaccess.

    Anonymous User 9105421

    (@anonymized-9105421)

    The message in settings > permalinks stays, thats no problem, thats same with me.

    I believe you are on a Mac computer, on Mac files that start with ‘.’ like .htaccess are hidden files, perhaps that is why you not see it.

    Does Mac has a option to show hidden (system) files?

    Thread Starter Oded Ben-Ami

    (@oded-ben-ami)

    I’m working with Cyberduck, (through a Mac) – I see the .htaccess file in the root directory, but I no longer see any .htaccess file in /wordpress. So it is not a visibility issue – the .htaccess file that was previously in /wordpress is no longer there.

    Anonymous User 9105421

    (@anonymized-9105421)

    OK i thought that you downloaded a copy to your computer.

    I have no idea how it disappeared from /wordpress directory but its not needed there. So no problem when its gone now. You have the .htaccess that is needed in the root.

    Perhaps you ‘cut’ the file instead of ‘copy’.

    Thread Starter Oded Ben-Ami

    (@oded-ben-ami)

    I dragged/dropped the file – thinking – from past experience anyway, that it copies.
    If you say it’s not needed in /wordpress anymore, so be it.

    Thank you everyone for the prompt help – losing one’s website on a key-click is an unpleasant experience. Thank you for “bringing me back to life”.

    Happy Holidays y’all.

Viewing 15 replies - 1 through 15 (of 17 total)
  • The topic ‘Lost website after relocation’ is closed to new replies.