View Single Post
  #6  
Old 04-07-2015, 06:48 AM
 
xgarb xgarb is offline
 

eXpert
  
Join Date: Jul 2004
Location: UK
Posts: 263
 

Default Re: Clean URLs - only show current directory in URL

Modx (my favourite CMS) offers two options for the re-write..

Quote:
The Use Friendly Alias Path (use_alias_path) setting allows the site to display directory structures. If it is set to "No" all of the documents on the site will appear in the URLs as if they are directly off of the root, disregarding the paths. It the setting is set to "Yes" (the default), you will see a full path to the current page in the URLs.

I want everything off the root ie..

domain.com/mazda-spare-parts/
domain.com/toyota-spare-parts/
domain.com/toyota-oil-gasket.html

In Modx it checks the URL is unique

I'm not an expert but I imagine this approach is best for SEO and generally looks nicer.
__________________
Core version: 5.5.xx
Reply With Quote