• I have tried to change my permalinks from the default to a different structure for the purposes of search engine optimization and getting Google Analytics for my site.

    For example, instead of my pages reading something like this:
    https://www.cpcwebsite.com/?page_id=37

    I want that same page to read:
    https://www.cpcwebsite.com/welcome-2

    For some reason, when I try to do this, I stay stuck on the initial entrance page:
    https://www.cpcwebsite
    instead of being allowed to move around within the site.

    I’m also using the Yoast.com search engine optimization plug-in.

    I have to take the site back to the default settings so I can use it and my site visitors can navigate within it.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Your page is redirecting to home. Please, check theme code or any custom plugin.

    Thread Starter dustylover

    (@dustylover)

    What entries? And where do they go?

    You can find .htacess in root of wp installation. firstly change, the theme to default theme and then try again (may be you put some redirect header in theme code and forget about it)

    Thread Starter dustylover

    (@dustylover)

    Here is my .htacess – directly from my server:

    RewriteEngine On
    RewriteBase /
    RewriteRule ^index\.php$ – [L]

    # add a trailing slash to /wp-admin
    RewriteRule ^([_0-9a-zA-Z-]+/)?wp-admin$ $1wp-admin/ [R=301,L]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^ – [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(wp-(content|admin|includes).*) $2 [L]
    RewriteRule ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
    RewriteRule . index.php [L]

    Replace all of that with:

    # 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

    Then, if you want to add any extra rules, add them before the WordPress section

    Thread Starter dustylover

    (@dustylover)

    Tried it, but my web site disappeared and I got an error message. I’m going to try to call my web hosting company to see about this.

    Thread Starter dustylover

    (@dustylover)

    No luck with the web hosting company. Any other ideas?

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Cannot change permalinks’ is closed to new replies.