• We have just changed hosting for our site to AWS. In the new site the permalink structure defaulted to plain option (Where previously it was set to post name) when we change it from plain to post name now all the pages are getting page not found errors.

    Here is the htaccess code in place: (Not sure if this is the issue or not)

    <IfModule LiteSpeed>
    ###LSCACHE START PLUGIN – Do not edit the contents of this block!###
    RewriteEngine on
    CacheLookup public on

    ###LSCACHE START RESOURCE###
    RewriteRule wp-content/.*/[^/]*(loader|fonts|\.css|\.js)\.php – [E=cache-control:max-age=3600]
    ###LSCACHE END RESOURCE###
    ###LSCACHE START FAVICON###
    RewriteRule favicon\.ico$ – [E=cache-control:max-age=86400]
    ###LSCACHE END FAVICON###
    ###LSCACHE END PLUGIN – Do not edit the contents of this block!###
    </IfModule>

    # 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

    # compress text, html, javascript, css, xml:
    AddOutputFilterByType DEFLATE text/plain
    AddOutputFilterByType DEFLATE text/html
    AddOutputFilterByType DEFLATE text/xml
    AddOutputFilterByType DEFLATE text/css
    AddOutputFilterByType DEFLATE application/xml
    AddOutputFilterByType DEFLATE application/xhtml+xml
    AddOutputFilterByType DEFLATE application/rss+xml
    AddOutputFilterByType DEFLATE application/javascript
    AddOutputFilterByType DEFLATE application/x-javascript
    AddType x-font/otf .otf
    AddType x-font/ttf .ttf
    AddType x-font/eot .eot
    AddType x-font/woff .woff
    AddType image/x-icon .ico
    AddType image/png .png

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

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator t-p

    (@t-p)

    If plain setting works, then try reading Using_Permalinks before setting a custom permalink structure again.

    Thread Starter unclebenjin

    (@unclebenjin)

    Thanks for the terse response t-p.
    Just some more history, our previous hosting provider were the ones to set up the website including Permalinks.
    We are just trying to deal with fall out now that we have moved hosts and the previous host is not helping in terms of advising us how/why the permalinks were set the way they were.

    Moderator t-p

    (@t-p)

    The article I linked in my previous reply explains how to set it up

    Your host should know. If they don’t, share it with them.

    Moderator t-p

    (@t-p)

    Ask your new hosting provider if mod_rewrite is enabled on your server.

    Thread Starter unclebenjin

    (@unclebenjin)

    Apparently it is:
    [root@ip-10-0-4-10 wordpress]# cat .htaccess | grep -i rewrite
    RewriteEngine on
    RewriteRule wp-content/.*/[^/]*(loader|fonts|\.css|\.js)\.php – [E=cache-control:max-age=3600]
    RewriteRule favicon\.ico$ – [E=cache-control:max-age=86400]
    <IfModule mod_rewrite.c>
    RewriteEngine On

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Permalink issues after changing hosting provider’ is closed to new replies.