Title: Relative-path Permalink Structure
Last modified: August 19, 2016

---

# Relative-path Permalink Structure

 *  [smac105](https://wordpress.org/support/users/smac105/)
 * (@smac105)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/relative-path-permalink-structure/)
 * 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:
 * [http://www.sitename.com/pagename](http://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:
 * [http://www.sitename.com/subpage1](http://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: [http://www.sitename.com/page/subpage](http://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)

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/relative-path-permalink-structure/#post-1774622)
 * WordPress doesn’t handle relative urls well – full stop.
 *  Thread Starter [smac105](https://wordpress.org/support/users/smac105/)
 * (@smac105)
 * [15 years, 6 months ago](https://wordpress.org/support/topic/relative-path-permalink-structure/#post-1774630)
 * 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.

## Tags

 * [pages](https://wordpress.org/support/topic-tag/pages/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [relative path](https://wordpress.org/support/topic-tag/relative-path/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [smac105](https://wordpress.org/support/users/smac105/)
 * Last activity: [15 years, 6 months ago](https://wordpress.org/support/topic/relative-path-permalink-structure/#post-1774630)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
