Search

I'm trying to setup the site that I'm working on to have an area for content. Each piece of content is a single page of the site.

So for example if someone make a new piece of content with the title "About Us" the corresponding url would be

http://www.example.com/content/about-us

I'm trying to figure out how to remove the page name from the URL structure so I would get

http://www.example.com/about-us

Am I going about this the right way or should I try something else?

Thanks

Try url_router extension. This does exactly what you are after.

root page params - does exactly that :) - Takes a page and if there are set parameters which do not match with any symphony page will redirect them to another page of your choice.

The URL Router incorporated Root Page Params in the last major version increase.

All you would have to do with the URL Router is have your homepage as the handle content an the parameter is what the about-us will resolve to. That way, calling http://www.example.com/about-us will instantly resolve to http://www.example.com/content/about-us

Ah perfect thanks guys.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details