Forums

I'm stupid (11 posts)

  1. aberdevine
    Member
    Posted 1 year ago #

    Before:
    - WordPress address (URL) - http://www.site.com/
    - Site address (URL) - http://www.site.com/
    - Everything works

    After:
    I changed
    - WordPress address (URL) to http://www.site.com/test
    - Site address (URL) to http://www.site.com/test
    - Nothing works (I can't log in as admin etc.)

    I know I was bad. But what I must change to fix it? Does anyone knows?
    (I have access to all files)

  2. aberdevine
    Member
    Posted 1 year ago #

    As I can see, .htaccess file is changed (or even created, I don't know)

    Now its contents are:

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

    # END WordPress

    (I haven't find any other changes yet but it means nothing.)
    Can anyone show me how looks his normal .htaccess?

  3. shahar
    Member
    Posted 1 year ago #

    Hi, did you follow these instructions?
    http://codex.wordpress.org/Giving_WordPress_Its_Own_Directory

  4. aberdevine
    Member
    Posted 1 year ago #

    No, I didn't. I made steps 2,3,4,5, and immediately after it my blog was inaccessible.

    Now I just want it back.

  5. aberdevine
    Member
    Posted 1 year ago #

    Okay, maybe I can try following all instructions and hope for best... but is here simple way to revert made changes?

  6. aberdevine
    Member
    Posted 1 year ago #

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    I changed it back to this. Now it doesn't say anything about error 500, when I want to log in site.com/wp-admin. It just redirects me to http://site.com/test/wp-login.php?redirect_to=http%3A%2F%2Fsite.com%2Fwp-admin%2F&reauth=1 and says that search for &reauth=1 is without results: error 404

    What else I need to change back?

  7. aberdevine
    Member
    Posted 1 year ago #

    What's changed by changing WordPress address and site address?

    Please, I want to know it for changing it back.

  8. aberdevine
    Member
    Posted 1 year ago #

    .htaccess isn't the only changed file, is it?

  9. fonglh
    Member
    Posted 1 year ago #

    the database entries have been changed too.

    see http://codex.wordpress.org/Changing_The_Site_URL

  10. aberdevine
    Member
    Posted 1 year ago #

    http://codex.wordpress.org/Changing_The_Site_URL

    yeey! I used method in "Edit functions.php". It saved me! :)

  11. aberdevine
    Member
    Posted 1 year ago #

    Thanks, fonglh!

Topic Closed

This topic has been closed to new replies.

About this Topic