• I recently restored my files and database using GoDaddy, and now,

    When I use GoDaddy’s cPanel to redirect from the .com to the /com/blog directory, the site only works if I change my permalinks to the default setting p=number. Setting the permalinks to any other setting results in an not found error in the area where the article feed should load. And clicking on article links from the sidebar also result in not found errors.

    If I disable the redirect from the .com to the .com/blog directory, all the different permalink settings work again. I like to use day and name.

    I’m stuck using default permalinks if I want folks to be able to visit the site using the .com only.

    All plugins are disabled.

    I’m running WP 4.5.15. Would updating be a good idea or should I wait until I resolve this issue in before I update to 4.9.x?

    I should also add that I’ve also tried working with the .htaccess file and usually I end up breaking the site even more so I end up restoring my files and my database again to end up back at what I am describing.

    Also, I don’t know if this helps, but there are 2 .htaccess files. One at the root as I navigate the directory via ftp, and another one in the /blog folder.

    Are they somehow conflicting?

    Another thing I had to do to get to this state is define WP HOME in wp-config.php

    define(‘WP_HOME’,’https://www.highbrowdesigns.com/blog’);

    And so this option appears filled in and grayed out (not editable) in General Settings.

    Defining the SITE URL seems to not have any effect.

    Do I have too many conflicting things?

    • This topic was modified 6 years, 7 months ago by chancemethod.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi,

    Please try replacing the code in the .htaccess to the following:

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

    (@chancemethod)

    Which .htaccess should I add this to?

    I have 2 .htaccess files.

    The first one is in the public_html folder.

    The second one is in the /blog folder (the /blog folder is at the root of the public_html folder).

    Add it to the /blog directory. But if there will be any issue, try renaming the .htaccess file to .htaccess_bak which is in the public_html directory

    • This reply was modified 6 years, 7 months ago by Maninder.
    • This reply was modified 6 years, 7 months ago by Maninder.
    Thread Starter chancemethod

    (@chancemethod)

    EDITED AFTER NOT READING COMMENT COMPLETELY

    Thank you. It works now as expected. I ended up doing both.
    I added the code to .htaccess in the /blog directory and I renamed the .htaccess file in the public_html directory to .htaccess.bak2 (Apparently I created a backup before–who knew?). A new .htaccess file was generated in the public_html directory.

    Now the site redirects from .com to /blog AND the permalinks are set to Day & Dame and it all works together.

    Thanks again!

    • This reply was modified 6 years, 7 months ago by chancemethod.
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Redirect to /blog breaks pretty permalinks’ is closed to new replies.