• I’m creating a site and using WP as a CMS. I have no categories, archives or posts, my site consists of pages and sub-pages only.

    In order for my page URL’s to appear normally (not like /?page=14), I need to set my permalinks up so they can appear like …/page/sub-page.

    To the best of my knowledge the codex only mentions permalink structures like /%category%/%postname%/ but it also mentions many times how pages are different to posts, and I don’t know how to structure my permalinks for a completely static site.

    I’ve had WP crash on me several times while trying to figure out this permalink issue so I would like to know for sure what to type into the “custom” box on the Options>>Permalinks page on the dashboard.

    For instance, is /%pagename%/%sub-pagename%/ acceptable?

    I have a .htaccess file sitting there with permissions set correctly just waiting for WP to do it’s thing, and mod-rewrite is also enabled.

    Anyone?

Viewing 2 replies - 16 through 17 (of 17 total)
  • Thread Starter nixdesign

    (@nixdesign)

    Okay, I can see using cPanel that WP has written the code to my .htaccess file.

    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]# BEGIN WordPress
    
    RewriteEngine On
    RewriteBase /blog/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /blog/index.php [L]

    I’ll call my host and report back.

    Thread Starter nixdesign

    (@nixdesign)

    Strange, but WP had written the permalink rules to the .htaccess file twice yet I was only seeing them once in cPanel?

    Still can’t quite get page permalinks to work though, I’ll keep trying.

    Thank you TSGuitar and thanks Moshu.

Viewing 2 replies - 16 through 17 (of 17 total)
  • The topic ‘Custom Permalink Structure for a completely Static Site?’ is closed to new replies.