Forum

Thread tagged as: Error, Configuration, Runway

No routes visible under Routes tab

Hi there,

For some reason there are no routes being displayed under my Routes tab - never ever. The site's been up and running for some time now.

Strange...

Damian Drozdowicz

Damian Drozdowicz 0 points

  • 5 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

That is strange. Can you give an example of one you've set?

Damian Drozdowicz

Damian Drozdowicz 0 points
Registered Developer

Right, I got it. I need to add it manually ... I was confused by this statement:

"By default, the router will map any incoming request to a page with the same URL. Adding an additional routes to the page is done through the Perch control panel."

So how should I convert this: /blog/archive.php?tag=google into that /blog/tag/google using routes?

I'm sorry this is not my cup of tea...

PS: To have a video tutorial one day with some examples would be amazing!

Drew McLellan

Drew McLellan 2638 points
Perch Support

If you have archive.php added as a page, in the options use:

blog/tag/[slug:tag]
Damian Drozdowicz

Damian Drozdowicz 0 points
Registered Developer

Alright, I have set it up: https://s30.postimg.org/hbu3d16ch/perch_routes.png

What would be the next step for transforming /blog/archive.php?tag=google into that /blog/tag/google ? I think I'm missing something. As /blog/tag/google still returns 404

Cheers,

Drew McLellan

Drew McLellan 2638 points
Perch Support

Is /blog/index.php a page out on your site, or have you set it up as a master page?

Damian Drozdowicz

Damian Drozdowicz 0 points
Registered Developer

First case: post, archive and blog have their files.

Drew McLellan

Drew McLellan 2638 points
Perch Support

I Runway you'll want to make a master page, and then base your pages on those master pages.

You can find the concepts explained here: https://docs.grabaperch.com/runway/structure/

Damian Drozdowicz

Damian Drozdowicz 0 points
Registered Developer

Alright, I think I'm getting there. I'm still not able to see my posts (404).

Can you tell me Drew if I missed smething here:

/templates/pages/blog/post.php

![/templates/pages/blog/post.php]https://i.imgsafe.org/2350cb1.png)

routes ![routes]https://i.imgsafe.org/c043592.png)

slug ![slug]https://i.imgsafe.org/e9cc0d4.png)

I have set blog, post, archive as master pages. The default token is:

'blogslug' => '[1-2][0-9]{3}\-[0-9]{2}\-[0-3][0-9]-[a-z0-9\-]+'

Thanks a lot,

Drew McLellan

Drew McLellan 2638 points
Perch Support

What's the URL when you get a 404?

Damian Drozdowicz

Damian Drozdowicz 0 points
Registered Developer

It goes like this: mydomain.com/blog/my-post-title

Thanks a lot

Drew McLellan

Drew McLellan 2638 points
Perch Support

This pattern won't match:

[1-2][0-9]{3}\-[0-9]{2}\-[0-3][0-9]-[a-z0-9\-]+

It's assuming a date like 2016-03-01-my-post-title

I don't think you need a custom token with that URL format, you can just use slug.

Where you have

 blog/[blogslug:s]

that could just be

 blog/[slug:s]
Damian Drozdowicz

Damian Drozdowicz 0 points
Registered Developer

Alright, I have changed all instances of

 blog/[blogslug:s]

to

 blog/[slug:s]

I managed to see one (only one) of my posts at: mydomain/blog/post directory. It's also visible at /blog/post?p=any-value .I guess there is still something missing in my config.

Drew McLellan

Drew McLellan 2638 points
Perch Support

What does the debug output for your page?

Damian Drozdowicz

Damian Drozdowicz 0 points
Registered Developer

debug log from /blog/post?p=my-post-slug

<table class="perch-debug"> <tbody><tr>     <th>Debug Message</th> </tr><tr><td class="db" title="PerchRouter.class.php: PerchRouter->get_route(): ">SELECT p.pagePath, pr.routePattern, pr.routeRegExp, p.pageTemplate FROM perch2_pages p LEFT JOIN perch2_page_routes pr
                ON p.pageID=pr.pageID ORDER BY pr.routeOrder ASC, p.pagePath ASC</td></tr><tr><td class="routing" title="PerchRouter.class.php: PerchRouter->get_route(): ">Matched page: /blog/post, so not using routes.</td></tr><tr><td class="routing" title="start.php: ">Using master page: /templates/pages/blog/post.php</td></tr><tr><td class="db" title="PerchFactory.class.php: PerchFactory->get_filtered_listing_from_index(): ">SELECT SQL_CALC_FOUND_ROWS DISTINCT tbl.* FROM ( SELECT  idx.itemID, main.*,  idx2.indexValue as sortval  FROM perch2_blog_index idx
                            JOIN perch2_blog_posts main ON idx.itemID=main.postID AND idx.itemKey='postID'
                            JOIN perch2_blog_index idx2 ON idx.itemID=idx2.itemID AND idx.itemKey='postID'  AND idx2.indexKey='_id'  WHERE 1=1  AND ((idx.indexKey='postSlug' AND idx.indexValue=''))  AND idx.itemID=idx2.itemID AND idx.itemKey=idx2.itemKey
                        GROUP BY idx.itemID
                    ) as tbl  WHERE (postStatus='Published' AND postDateTime&lt;='2016-03-31 10:55:00' ) GROUP BY itemID  ORDER BY sortval ASC LIMIT 0, 10</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT FOUND_ROWS() AS `count` </td></tr><tr><td class="db" title="PerchSettings.class.php: PerchSettings->get(): ">SELECT DISTINCT settingID, settingValue FROM perch2_settings WHERE userID=0</td></tr><tr><td class="template" title="PerchAPI_Template.class.php: PerchAPI_Template->set(): ">Using template: /templates/blog/post.html</td></tr><tr><td class="template" title="PerchTemplate.class.php: PerchTemplate->find_all_tag_ids(): ">Using sub-template: /templates/blog/blocks/text.html</td></tr><tr><td class="template" title="PerchTemplate.class.php: PerchTemplate->find_all_tag_ids(): ">Using sub-template: /templates/blog/blocks/text_block.html</td></tr><tr><td class="template" title="PerchTemplate.class.php: PerchTemplate->find_all_tag_ids(): ">Using sub-template: /templates/blog/blocks/ol.html</td></tr><tr><td class="template" title="PerchTemplate.class.php: PerchTemplate->find_all_tag_ids(): ">Using sub-template: /templates/blog/blocks/ul.html</td></tr><tr><td class="template" title="PerchTemplate.class.php: PerchTemplate->find_all_tag_ids(): ">Using sub-template: /templates/blog/blocks/dl.html</td></tr><tr><td class="template" title="PerchTemplate.class.php: PerchTemplate->find_all_tag_ids(): ">Using sub-template: /templates/blog/blocks/blockquote.html</td></tr><tr><td class="template" title="PerchTemplate.class.php: PerchTemplate->find_all_tag_ids(): ">Using sub-template: /templates/blog/blocks/image.html</td></tr><tr><td class="template" title="PerchTemplate.class.php: PerchTemplate->find_all_tag_ids(): ">Using sub-template: /templates/blog/blocks/cta.html</td></tr><tr><td class="db" title="PerchFactory.class.php: PerchFactory->all(): ">SELECT *
                FROM perch2_blogs ORDER BY blogTitle ASC</td></tr><tr><td class="db" title="PerchFactory.class.php: PerchFactory->all(): ">SELECT *
                FROM perch2_blog_sections ORDER BY sectionTitle ASC</td></tr><tr><td class="db" title="PerchCategories_Categories.class.php: PerchCategories_Categories->get_categories_from_ids_runtime(): ">SELECT * FROM perch2_categories ORDER BY catTreePosition ASC</td></tr><tr><td class="db" title="PerchCategories_Categories.class.php: PerchCategories_Categories->get_cat_paths_by_id_runtime(): ">SELECT catID, catPath FROM perch2_categories</td></tr><tr><td class="db" title="PerchContent_Pages.class.php: PerchContent_Pages->find_by_path(): ">SELECT * FROM perch2_pages WHERE pagePath='/blog/post' LIMIT 1</td></tr><tr><td class="template" title="PerchContent_Page.class.php: PerchContent_Page->template_attributes(): ">Using template: /templates/pages/attributes/facebook.html</td></tr><tr><td class="template" title="PerchContent_Page.class.php: PerchContent_Page->template_attributes(): ">Using template: /templates/pages/attributes/twitter.html</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT groupID FROM perch2_navigation WHERE groupSlug='main' LIMIT 1</td></tr><tr><td class="db" title="PerchContent_Pages.class.php: PerchContent_Pages->get_navigation(): ">SELECT np.pageID, np.pageParentID, p.pagePath, p.pageTitle, p.pageNavText, p.pageNew, p.pageOrder, np.pageDepth, p.pageSortPath, np.pageTreePosition, p.pageAccessTags, p.pageAttributes
                    FROM perch2_navigation_pages np, perch2_pages p WHERE p.pageID=np.pageID AND np.groupID=1 AND p.pageNew=0  AND np.pageDepth &gt;=0 AND np.pageDepth&lt;=1  ORDER BY np.pageTreePosition ASC</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT np.pageTreePosition FROM perch2_pages p, perch2_navigation_pages np WHERE np.pageID=p.pageID AND np.groupID=1 AND p.pagePath='/blog/post' LIMIT 1</td></tr><tr><td class="template" title="PerchContent_Pages.class.php: PerchContent_Pages->get_navigation(): ">Using template: /templates/navigation/nav-desktop.html</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT groupID FROM perch2_navigation WHERE groupSlug='main' LIMIT 1</td></tr><tr><td class="db" title="PerchContent_Pages.class.php: PerchContent_Pages->get_navigation(): ">SELECT np.pageID, np.pageParentID, p.pagePath, p.pageTitle, p.pageNavText, p.pageNew, p.pageOrder, np.pageDepth, p.pageSortPath, np.pageTreePosition, p.pageAccessTags, p.pageAttributes
                    FROM perch2_navigation_pages np, perch2_pages p WHERE p.pageID=np.pageID AND np.groupID=1 AND p.pageNew=0  AND np.pageDepth &gt;=0 AND np.pageDepth&lt;=1  ORDER BY np.pageTreePosition ASC</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT np.pageTreePosition FROM perch2_pages p, perch2_navigation_pages np WHERE np.pageID=p.pageID AND np.groupID=1 AND p.pagePath='/blog/post' LIMIT 1</td></tr><tr><td class="template" title="PerchContent_Pages.class.php: PerchContent_Pages->get_navigation(): ">Using template: /templates/navigation/nav-mobile.html</td></tr><tr><td class="db" title="PerchBlog_Posts.class.php: PerchBlog_Posts->find_by_slug(): ">SELECT * FROM perch2_blog_posts WHERE postStatus='Published' AND postDateTime&lt;='2016-03-31 10:55:00' AND postSlug=''</td></tr><tr><td class="db" title="PerchBlog_Comments.class.php: PerchBlog_Comments->get_custom(): ">SELECT * FROM perch2_blog_comments WHERE 1=1  AND postID=0 AND commentStatus='LIVE' ORDER BY commentDateTime ASC</td></tr><tr><td class="template" title="PerchAPI_Template.class.php: PerchAPI_Template->set(): ">Using template: /templates/blog/comment.html</td></tr><tr><td class="template" title="PerchAPI_Template.class.php: PerchAPI_Template->set(): ">Using template: /templates/blog/comment_form.html</td></tr><tr><td class="db" title="PerchTwitter_Tweets.class.php: PerchTwitter_Tweets->get_custom(): ">SELECT * 
                FROM perch2_twitter_tweets 
                WHERE tweetType='mine' ORDER BY tweetDate DESC LIMIT 3</td></tr><tr><td class="template" title="PerchAPI_Template.class.php: PerchAPI_Template->set(): ">Using template: /templates/twitter/tweet.html</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT groupID FROM perch2_navigation WHERE groupSlug='main' LIMIT 1</td></tr><tr><td class="db" title="PerchContent_Pages.class.php: PerchContent_Pages->get_navigation(): ">SELECT np.pageID, np.pageParentID, p.pagePath, p.pageTitle, p.pageNavText, p.pageNew, p.pageOrder, np.pageDepth, p.pageSortPath, np.pageTreePosition, p.pageAccessTags, p.pageAttributes
                    FROM perch2_navigation_pages np, perch2_pages p WHERE p.pageID=np.pageID AND np.groupID=1 AND p.pageNew=0  AND np.pageDepth &gt;=0 AND np.pageDepth&lt;=1  ORDER BY np.pageTreePosition ASC</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT np.pageTreePosition FROM perch2_pages p, perch2_navigation_pages np WHERE np.pageID=p.pageID AND np.groupID=1 AND p.pagePath='/blog/post' LIMIT 1</td></tr><tr><td class="template" title="PerchContent_Pages.class.php: PerchContent_Pages->get_navigation(): ">Using template: /templates/navigation/item.html</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT groupID FROM perch2_navigation WHERE groupSlug='secondary' LIMIT 1</td></tr><tr><td class="db" title="PerchContent_Pages.class.php: PerchContent_Pages->get_navigation(): ">SELECT np.pageID, np.pageParentID, p.pagePath, p.pageTitle, p.pageNavText, p.pageNew, p.pageOrder, np.pageDepth, p.pageSortPath, np.pageTreePosition, p.pageAccessTags, p.pageAttributes
                    FROM perch2_navigation_pages np, perch2_pages p WHERE p.pageID=np.pageID AND np.groupID=3 AND p.pageNew=0  AND np.pageDepth &gt;=0 AND np.pageDepth&lt;=1  ORDER BY np.pageTreePosition ASC</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT np.pageTreePosition FROM perch2_pages p, perch2_navigation_pages np WHERE np.pageID=p.pageID AND np.groupID=3 AND p.pagePath='/blog/post' LIMIT 1</td></tr><tr><td class="template" title="PerchContent_Pages.class.php: PerchContent_Pages->get_navigation(): ">Using template: /templates/navigation/item.html</td></tr><tr><td class="db" title="PerchFactory.class.php: PerchFactory->get_filtered_listing_from_index(): ">SELECT SQL_CALC_FOUND_ROWS DISTINCT tbl.* FROM ( SELECT  idx.itemID, main.*,  idx2.indexValue as sortval  FROM perch2_blog_index idx
                            JOIN perch2_blog_posts main ON idx.itemID=main.postID AND idx.itemKey='postID'
                            JOIN perch2_blog_index idx2 ON idx.itemID=idx2.itemID AND idx.itemKey='postID'  AND idx2.indexKey='postDateTime'  WHERE 1=1  AND idx.itemID=idx2.itemID AND idx.itemKey=idx2.itemKey
                        GROUP BY idx.itemID
                    ) as tbl  WHERE (postStatus='Published' AND postDateTime&lt;='2016-03-31 10:55:00' ) GROUP BY itemID  ORDER BY sortval DESC LIMIT 0, 3</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT FOUND_ROWS() AS `count` </td></tr><tr><td class="template" title="PerchAPI_Template.class.php: PerchAPI_Template->set(): ">Using template: /templates/blog/post_in_footer.html</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT groupID FROM perch2_navigation WHERE groupSlug='footnote' LIMIT 1</td></tr><tr><td class="db" title="PerchContent_Pages.class.php: PerchContent_Pages->get_navigation(): ">SELECT np.pageID, np.pageParentID, p.pagePath, p.pageTitle, p.pageNavText, p.pageNew, p.pageOrder, np.pageDepth, p.pageSortPath, np.pageTreePosition, p.pageAccessTags, p.pageAttributes
                    FROM perch2_navigation_pages np, perch2_pages p WHERE p.pageID=np.pageID AND np.groupID=2 AND p.pageNew=0  AND np.pageDepth &gt;=0 AND np.pageDepth&lt;=1  ORDER BY np.pageTreePosition ASC</td></tr><tr><td class="db" title="PerchDB_MySQL.class.php: PerchDB_MySQL->get_value(): ">SELECT np.pageTreePosition FROM perch2_pages p, perch2_navigation_pages np WHERE np.pageID=p.pageID AND np.groupID=2 AND p.pagePath='/blog/post' LIMIT 1</td></tr><tr><td class="template" title="PerchContent_Pages.class.php: PerchContent_Pages->get_navigation(): ">Using template: /templates/navigation/item.html</td></tr><tr><td class="log" title="start.php: ">Time: 0.0884</td></tr><tr><td class="log" title="start.php: ">Memory: 5.2707</td></tr></tbody></table>

Perch diagnostics

<div class="info">
        <h3>Perch information</h3>
        <ul>
            <li>Perch Runway: 2.8.18</li>

            <li>Production mode: Production (100)</li>

            <li>Installed apps: content (2.8.18), assets (2.8.18), categories (2.8.18), perch_blog (5.0), perch_cm (1.0.1), perch_forms (1.8.3), perch_gallery (2.8.6), perch_newsfeed (1), perch_shop_paypal (1.2.3), perch_comments (1.2), perch_members (1.4), perch_podcasts (1.1), perch_backup (1.2), perch_twitter (3.5.1)</li>
                      <li>DB driver: PDO</li>
                      <li>DB tables: perch2_backup_plans, perch2_backup_resources, perch2_backup_runs, perch2_blog_authors, perch2_blog_comments, perch2_blog_index, perch2_blog_posts, perch2_blog_posts_to_tags, perch2_blog_sections, perch2_blog_tags, perch2_blogs, perch2_categories, perch2_category_counts, perch2_category_sets, perch2_cm_history, perch2_cm_stats, perch2_cm_subscribers, perch2_collection_index, perch2_collection_items, perch2_collection_revisions, perch2_collections, perch2_comments, perch2_comments_votes, perch2_content_index, perch2_content_items, perch2_content_regions, perch2_forms, perch2_forms_responses, perch2_navigation, perch2_navigation_pages, perch2_newsfeed, perch2_page_routes, perch2_page_templates, perch2_pages, perch2_resource_log, perch2_resource_tags, perch2_resources, perch2_resources_to_tags, perch2_settings, perch2_twitter_scheduled_tweets, perch2_twitter_settings, perch2_twitter_tweets, perch2_user_privileges, perch2_user_role_privileges, perch2_user_roles, perch2_users</li>
                     <li>Users: 1</li>

            <li>App runtimes: <pre>&lt;?php
    $apps_list = array(
        'content', 
        'categories',
        'perch_blog',
        'perch_forms',
        /*'perch_gallery',
        'perch_members',*/
        /*'perch_shop_paypal',*/
        'perch_twitter'
    );</pre></li>

            <li>Scheduled tasks for perch_blog: delete_spam_comments (1440 mins)</li>
            <li>Scheduled tasks for perch_comments: delete_spam_comments (1440 mins)</li>
            <li>Scheduled tasks for perch_cm: update_list_stats (60 mins)</li>
            <li>Scheduled tasks for perch_twitter: post_tweets (1 mins), update_tweets (360 mins)</li>
            <li>Scheduled tasks for perch_newsfeed: update_news (1440 mins)</li>
                        <li>Editor plug-ins: redactor, markitup</li>
                        <li>H1: 70382dfba6d616b3ce6bcc07a60c1a0a</li>

            <li>L1: c43bcaac0669eedd35bff5806d59ccbc</li>


            <li>headerColour: #000000</li>
            <li>content_singlePageEdit: 1</li>
            <li>helpURL: </li>
            <li>siteURL: /</li>
            <li>hideBranding: 1</li>
            <li>content_collapseList: 1</li>
            <li>lang: en-gb</li>
            <li>update_2.8.14: done</li>
            <li>headerScheme: dark</li>
            <li>update_runway_2.8.14: done</li>
            <li>latest_version: 2.8.15</li>
            <li>on_sale_version: 2.8.27</li>
            <li>update_runway_2.8.15: done</li>
            <li>perch_blog_update: 5.0.1</li>
            <li>perch_blog_post_url: /blog/{postSlug}</li>
            <li>hide_pwd_reset: 1</li>
            <li>perch_blog_slug_format: {postTitle}</li>
            <li>perch_blog_max_spam_days: 0</li>
            <li>perch_comments_akismet_key: </li>
            <li>perch_comments_max_spam_days: 0</li>
            <li>perch_backup_mysqldump_path: </li>
            <li>perch_shop_paypal_email: </li>
            <li>perch_shop_product_url: /shop/product.php?s={productSlug}</li>
            <li>perch_cm_api_key: 15d15431ec3447c47ae5b877a8f3396afdc63790742d72df</li>
            <li>perch_cm_list_id: 7e322480bb24aea4dbc3fff006b6da02</li>
            <li>perch_members_login_page: /members/login.php?r={returnURL}</li>
            <li>perch_gallery_bucket_mode: dynamic</li>
            <li>perch_gallery_bucket: gallery</li>
            <li>dashboard: 1</li>
            <li>content_hideNonEditableRegions: 0</li>
            <li>content_frontend_edit: 0</li>
            <li>perch_blog_comment_notify: 1</li>
            <li>perch_shop_display_oos: 0</li>
            <li>perch_gallery_basicUpload: 0</li>
            <li>update_runway_2.8.18: done</li>
            <li>logoPath: /cms/resources/logo-icon.jpg</li>
            <li>perch_twitter_update: 3.5</li>
            <li>perch_blog_site_name: Perch Test</li>
            <li>perch_blog_akismet_key: </li>
                     <li>PERCH_DEVELOPMENT: 10</li>
                     <li>PERCH_STAGING: 50</li>
            <li>PERCH_PRODUCTION: 100</li>
            <li>PERCH_SITEPATH: localhost/public_html</li>
            <li>PERCH_SCHEDULE_SECRET: </li>
            <li>PERCH_DB_USERNAME: dbcom</li>
            <li>PERCH_DB_SERVER: localhost</li>
            <li>PERCH_DB_DATABASE: dbtest</li>
            <li>PERCH_DB_PREFIX: perch2_</li>
            <li>PERCH_EMAIL_FROM: website@perchtest.com/li><li>PERCH_EMAIL_FROM_NAME: Test</li>
            <li>PERCH_LOGINPATH: /cms</li>
            <li>PERCH_PATH: localhost/public_html/cms</li>
            <li>PERCH_CORE: localhost/public_html/cms/core</li>
            <li>PERCH_RESFILEPATH: localhost/public_html/cms/resources</li>
            <li>PERCH_RESPATH: /cms/resources</li>
            <li>PERCH_HTML5: 1</li>
            <li>PERCH_TZ: UTC</li>
            <li>PERCH_RWD: 1</li>
            <li>PERCH_EMAIL_METHOD: smtp</li>
            <li>PERCH_EMAIL_HOST: pro4.linuxpl.com</li>
            <li>PERCH_EMAIL_PORT: 587</li>
            <li>PERCH_EMAIL_AUTH: 1</li>
            <li>PERCH_EMAIL_SECURE: STARTTLS</li>
            <li>PERCH_EMAIL_USERNAME: website@perchtest.com/li><li>PERCH_DEBUG: 1</li>
            <li>PERCH_RUNWAY: 1</li>
            <li>PERCH_ERROR_MODE: DIE</li>
            <li>PERCH_DATE_LONG: %d %B %Y</li>
            <li>PERCH_DATE_SHORT: %d %b %Y</li>
            <li>PERCH_TIME_SHORT: %H:%M</li>
            <li>PERCH_TIME_LONG: %H:%M:%S</li>
            <li>PERCH_PREVIEW_ARG: preview</li>
            <li>PERCH_TEMPLATE_PATH: localhost/public_html/cms/templates</li>
            <li>PERCH_DEFAULT_DOC: index.php</li>
            <li>PERCH_DEFAULT_EXT: .php</li>
            <li>PERCH_PRODUCTION_MODE: 100</li>
            <li>PERCH_HTML_ENTITIES: </li>
            <li>PERCH_SSL: </li>
            <li>PERCH_STRIPSLASHES: </li>
            <li>PERCH_PROGRESSIVE_FLUSH: 1</li>
            <li>PERCH_AUTH_PLUGIN: </li>
            <li>PERCH_DB_CHARSET: utf8</li>
            <li>PERCH_DB_PORT: </li>
            <li>PERCH_DB_SOCKET: </li>
            <li>PERCH_SESSION_TIMEOUT_MINS: 20</li>
            <li>PERCH_APPS_EDITOR_PLUGIN: markitup</li>
            <li>PERCH_APPS_EDITOR_MARKUP_LANGUAGE: textile</li>
                 </ul>
        <h3>Hosting settings</h3>
        <ul>
            <li>PHP: 5.6.19</li>

            <li>Zend: 2.6.0</li>

            <li>OS: Linux</li>

            <li>SAPI: litespeed</li>

            <li>Safe mode: not detected</li>

            <li>MySQL client: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $</li>

            <li>MySQL server: 5.5.48-37.8</li>

            <li>Extensions: Core, date, ereg, libxml, openssl, pcre, sqlite3, zlib, bcmath, bz2, calendar, ctype, curl, dba, dom, hash, fileinfo, filter, ftp, gd, gettext, SPL, iconv, session, intl, json, mbstring, mcrypt, mssql, standard, mysqlnd, mysqli, pcntl, mysql, PDO, pdo_mysql, pdo_pgsql, pdo_sqlite, pgsql, Phar, posix, pspell, readline, Reflection, imap, SimpleXML, soap, sockets, exif, sysvsem, tidy, tokenizer, wddx, xml, xmlreader, xmlrpc, xmlwriter, xsl, zip, litespeed, mhash, ionCube Loader</li>

            <li class="section">GD: Yes            </li>

            <li>ImageMagick: No</li>

            <li>PHP max upload size: 128M</li>

            <li>PHP max form post size: 32M</li>

            <li>PHP memory limit: 128M</li>

            <li>Total max uploadable file size: 32M</li>

            <li>Resource folder writeable: Yes</li>


            <li class="section">Session timeout: 24 minutes</li>

            <li>Native JSON: Yes</li>

            <li>Filter functions: Yes</li>

            <li>Transliteration functions: Yes</li>


            <li class="section">PATH: /bin:/usr/bin:/usr/local/bin</li>
            <li>HTTP_ACCEPT: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8</li>
            <li>HTTP_ACCEPT_ENCODING: gzip, deflate, sdch</li>
            <li>HTTP_ACCEPT_LANGUAGE: pl-PL,pl;q=0.8,en-US;q=0.6,en;q=0.4</li>
            <li>HTTP_CONNECTION: keep-alive</li>
            <li>HTTP_COOKIE: __utmt=1; __utma=13672098.1517369575.1459421453.1459421453.1459421453.1; __utmb=13672098.8.10.1459421453; __utmc=13672098; __utmz=13672098.1459421453.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); cmsa=1; PHPSESSID=laqmq6i1seotjgbgf9c6ukaot1</li>
            <li>HTTP_HOST: localhost</li>
            <li>HTTP_REFERER: localhost/cms/core/settings/diagnostics/</li>
            <li>HTTP_USER_AGENT: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.87 Safari/537.36</li>
            <li>HTTP_UPGRADE_INSECURE_REQUESTS: 1</li>
            <li>DOCUMENT_ROOT: localhost/public_html</li>
            <li>REMOTE_ADDR: 194.187.75.12</li>
            <li>REMOTE_PORT: 4225</li>
            <li>SERVER_ADDR: 88.198.240.8</li>
            <li>SERVER_NAME: dev.perchtest.com/li><li>SERVER_ADMIN: info@perchtest.com/li><li>SERVER_PORT: 80</li>
            <li>REQUEST_URI: /cms/core/settings/diagnostics/?extended</li>
            <li>TZ: Europe/London</li>
            <li>SCRIPT_FILENAME: localhost/public_html/cms/core/settings/diagnostics/index.php</li>
            <li>QUERY_STRING: extended</li>
            <li>SCRIPT_URI: https://dev.damiandrozdowicz.com/cms/core/settings/diagnostics/</li>
            <li>SCRIPT_URL: /cms/core/settings/diagnostics/</li>
            <li>SCRIPT_NAME: /cms/core/settings/diagnostics/index.php</li>
            <li>SERVER_PROTOCOL: HTTP/1.1</li>
            <li>SERVER_SOFTWARE: LiteSpeed</li>
            <li>REQUEST_METHOD: GET</li>
            <li>X-LSCACHE: 1</li>
            <li>PHP_SELF: /cms/core/settings/diagnostics/index.php</li>
            <li>REQUEST_TIME_FLOAT: 1459422684.6939</li>
            <li>REQUEST_TIME: 1459422684</li>
            <li>argc: 1</li>

        </ul>

    </div>

I hope that helps

Drew McLellan

Drew McLellan 2638 points
Perch Support

What about for /blog/post/my-post-slug, as I presume that's what you want to get configured?

(please don't post the HTML, it's really hard to read. The text output is ideal.)

Damian Drozdowicz

Damian Drozdowicz 0 points
Registered Developer

Alright, I got to the bottom of this!

BTW how would I change this

blog/archive/[year:year]/[i:month]

So it displays URL like so ( %F )

blog/archive/2016/january
Drew McLellan

Drew McLellan 2638 points
Perch Support

You'd do it the other way around. Change the link and then update the route with a new pattern to match.

blog/archive/[year:year]/slug:month]
Damian Drozdowicz

Damian Drozdowicz 0 points
Registered Developer

Thank you Drew, all sorted :)