Polycms Cover 1280x720 1

PolyCMS Permalink & URL Settings: Clean Routes in Perfex

Messy query-string URLs hurt click-through rates, while careless permalink changes inside Perfex CRM can accidentally hijack /admin, /clients, or API endpoints and trigger widespread 404 errors. Search engines penalize unredirected slug changes and inconsistent trailing slashes as duplicate or broken pages.

Configuring PolyCMS permalink and URL settings cleanly locks in human-readable routes, enforces consistent canonical patterns, and protects core CRM paths from routing collisions.

Once your base permalink structure is locked in, update your navigation links using our PolyCMS Menu Builder Guide so header links match canonical targets.

URL PatternBest Use CaseRouting Consideration
/%postname%/Landing pages and evergreen guidesAvoid reserved CRM path prefixes
/blog/%postname%/Editorial articles on CRM domainClean isolation from CRM routes
/%category%/%postname%/Multi-topic documentation hubsRequires 301 redirect on recategorize
/products/%slug%/Storefront and catalog itemsAlign with PolyStore canonical rules

Select a concise, flat permalink structure early in the project before publishing backlinks or submitting sitemaps. Isolating blog posts under a clear prefix such as /blog/ or /docs/ eliminates collisions with Perfex CRM staff and client routes.

  • Reserve core Perfex CRM paths (admin, clients, authentication, api, cron) so editors cannot save conflicting page slugs.
  • Standardize trailing-slash behavior across both server rewrites and canonical tags so URLs resolve to one authoritative version.
  • Keep slugs lowercase, ASCII-sanitized, and hyphen-separated without stop words or numeric IDs unless required for news archives.

Server Rewrite Rules and 301 Redirect Hygiene

Clean permalinks depend on Apache mod_rewrite or Nginx try_files forwarding non-file requests to index.php. Also avoid uploading files with conflicting names in your PolyCMS Media Library Guide workflow, and verify storefront variant rules against PolyStore E-Commerce SEO.

  • Ensure index.php is stripped from public URLs via .htaccess or Nginx location directives without breaking Perfex CRM AJAX endpoints.
  • Create permanent 301 redirects whenever you rename an existing published slug or change a category prefix.
  • Regenerate XML sitemaps and purge page caches immediately after saving permalink settings.

Common Pitfalls and Quick Fixes

  • Every custom permalink returns 404: Confirm Apache AllowOverride All is enabled or add try_files $uri $uri/ /index.php?$query_string; to Nginx.
  • Redirect loop between trailing slash and non-trailing slash: Align PolyCMS trailing-slash settings with your web server rewrite rules so both enforce the exact same format.
  • Post slug collides with an existing folder: Rename the conflicting physical folder or move the post under a dedicated prefix such as /guides/.

Frequently Asked Questions

Can I change PolyCMS permalink structures on an established live site?

You can change structures later, but doing so without 301 redirects drops search rankings and breaks external backlinks. Before modifying live patterns, export all existing post URLs, configure server-level 301 redirect rules to the new paths, and resubmit your updated XML sitemap.

Which slugs are unsafe to use for PolyCMS pages inside Perfex CRM?

Avoid slugs matching core Perfex CRM controllers or directories such as admin, clients, api, assets, modules, uploads, or invoice. Using reserved prefixes causes route ambiguity where either the CRM dashboard becomes unreachable or your public page triggers an authentication redirect.

How should multilingual or non-ASCII characters be handled in slugs?

Enable automatic ASCII transliteration in PolyCMS so accented characters convert into clean lowercase hyphens on save. Transliterated ASCII slugs stay readable when copied from browsers, prevent long percent-encoded URL bloat, and reduce routing mismatches across Apache and Nginx web servers.

Why does index.php still appear in my PolyCMS URLs?

CodeIgniter keeps index.php in generated links when config index_page is non-empty or when server rewrite rules are inactive. Clear index_page in Perfex configuration, verify .htaccess or Nginx try_files routing works cleanly on every route, and flush cached menus and XML sitemaps afterward.


Comments

Leave a Reply

Your email address will not be published.Required fields are marked *