• Same problem but I’ve tried everything I’ve read

    Running on the host: http://www.ryokanshut.com
    Installed in: public_html/ryokan
    Using standard /year/month/name permalink
    Added everything to .htaccess in public_html/ryokan:

    # 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

    NOTE: I tried changing the “RewriteBase /” and “RewriteRule . /index.php [L]” lines to include “/ryokan” and no apparent change.
    Disabled all plugins
    Still getting this:
    Not Found

    Apologies, but the page you requested could not be found. Perhaps searching will help.

    If my permalink is: http://ryokanshut.com/2011/08/no-college-degree-plan-2/
    Then the preview button links to: http://ryokanshut.com/?p=443&preview=true

    Thank you all.

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    Bump deleted, please don’t.

    So the permalinks work, but the preview doesn’t… What happens if you use http://ryokanshut.com/ryokan/?p=443&preview=true

    It LOOKS like you have WordPress in a subfolder but ACTING like it’s in root. I do that too 😉 What’s in the .htaccess in the MAIN public_html folder?

    Thread Starter SyntaxJO

    (@syntaxjo)

    Sorry bout the bump – got scurred.

    Trying adding ‘ryokan’:
    http://ryokanshut.com/ryokan/?p=459&preview=true
    and it takes it away and brings me here with the same error:
    http://ryokanshut.com/?p=459&preview=true

    htaccess in public_html/ looks like the same:

    # 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

    Very interesting but don’t know where to go from here.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    If your WP install is in ryokan then the .htaccess in public_html should be:

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

    And the one in /ryokan would be…

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

    (though I don’t think the one in ryokan gets used at all)

    Thread Starter SyntaxJO

    (@syntaxjo)

    Ok… Yea… I effed up. I was mistaken about what was in the public_html .htacces. THIS was what was in the public_html:

    # Use PHP5CGI as default
    AddHandler fcgid-script .php

    So I erased and added what you said to it:

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

    And it didn’t work. Then I added the original to the top of it:

    # Use PHP5CGI as default
    AddHandler fcgid-script .php
    
    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /ryokan/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
    # END WordPress

    …and it STILL didn’t work:

    Internal Server Error

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

    Please contact the server administrator, webmaster@thethinkswitch.com 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.
    Apache Server at http://www.thethinkswitch.com Port 80

    Sorry to waste your time.

    Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Advisor and Activist

    I formatted your post for you. PLEASE use the code tag and blockquotes 🙂 Makes reading your post a lot easier.

    Try this in public_html:

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

    If that doesn’t work add

    # Use PHP5CGI as default
    AddHandler fcgid-script .php

    above it. If THAT doesn’t work, ask your webhost if there’s something else you need to set.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Preview Button uses wrong Permalink – 2’ is closed to new replies.