Title: Custom URLS example.com/dir/subdir
Last modified: August 20, 2016

---

# Custom URLS example.com/dir/subdir

 *  [Alex Hunter](https://wordpress.org/support/users/afghan123/)
 * (@afghan123)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/custom-urls-examplecomdirsubdir/)
 * Hello,
 * I anyone help me sort out this as I am new with wordpress I want to have urls
   as below:
 * [http://www.example.com/dir/subdir](http://www.example.com/dir/subdir)
 * Where [http://www.example.com/dir/](http://www.example.com/dir/) is also a page
   and other links should be like example.com/dir/subdir

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

 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/custom-urls-examplecomdirsubdir/#post-3022957)
 * WordPress doesn’t use directories or sub-directories. Perhaps you need to use
   [Pages](http://codex.wordpress.org/Pages) and child Pages?
 *  Thread Starter [Alex Hunter](https://wordpress.org/support/users/afghan123/)
 * (@afghan123)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/custom-urls-examplecomdirsubdir/#post-3022960)
 * I created the nested page but when I try to access the url example.com/dir/subdir
   it returns 404 error and also when I try to link to the page from example.com/
   dir I can’t find it in the existing content list.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/custom-urls-examplecomdirsubdir/#post-3023035)
 * Have you set up any custom permalinks yet?
 *  Thread Starter [Alex Hunter](https://wordpress.org/support/users/afghan123/)
 * (@afghan123)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/custom-urls-examplecomdirsubdir/#post-3023045)
 * I was able to set it but when I access the link it returns 404 error despite 
   that the page is available
 * eg: I have a forum page at [http://www.domain.com/forum](http://www.domain.com/forum)
   I set another page as [http://www.domain.com/forum/topic](http://www.domain.com/forum/topic)
   as described in the page you provided but now when I access [http://www.domain.com/forum/topic](http://www.domain.com/forum/topic)
   I get error: The page you requested could not be found.
 * How to fix this.
 *  [esmi](https://wordpress.org/support/users/esmi/)
 * (@esmi)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/custom-urls-examplecomdirsubdir/#post-3023048)
 * Site url?
 *  Thread Starter [Alex Hunter](https://wordpress.org/support/users/afghan123/)
 * (@afghan123)
 * [13 years, 8 months ago](https://wordpress.org/support/topic/custom-urls-examplecomdirsubdir/#post-3023101)
 * Hello,
 * I was able to do it now after adding /directoryname in perm link settings now
   I want a subpage for subpage eg example.com/dir/subdir/subdir could you please
   explain how to do this?

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

The topic ‘Custom URLS example.com/dir/subdir’ is closed to new replies.

## Tags

 * [custom](https://wordpress.org/support/topic-tag/custom/)
 * [permalink](https://wordpress.org/support/topic-tag/permalink/)
 * [url](https://wordpress.org/support/topic-tag/url/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 6 replies
 * 2 participants
 * Last reply from: [Alex Hunter](https://wordpress.org/support/users/afghan123/)
 * Last activity: [13 years, 8 months ago](https://wordpress.org/support/topic/custom-urls-examplecomdirsubdir/#post-3023101)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
