• I am having trouble getting my permalink structure to show the relative path to sub pages.

    For example, when I pull up a top-level page it shows up as:

    https://www.sitename.com/pagename
    This is correct. However, when I go to a subpage of that page (i.e. “./pagename/subpage1”) the permalink shows up as:

    https://www.sitename.com/subpage1

    My permalink settings are on custom, with /%postname%/ as the custom setting. I checked my .htaccess file and this is what I have in there:

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </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

    Does anyone know how I could get the page structure to show the relative path?
    (For example: https://www.sitename.com/page/subpage)

    Let me know if you need more info. Thanks in advance!

Viewing 2 replies - 1 through 2 (of 2 total)
  • WordPress doesn’t handle relative urls well – full stop.

    Thread Starter smac105

    (@smac105)

    Hey esmi…

    I actually figured out the issue…I mistakenly thought that I had placed pages under “parents” when I had not…

    All I had to do was go back and give each subpage a parent.

    Thanks for your help though! I appreciate the quick response!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Relative-path Permalink Structure’ is closed to new replies.