2 users online. Create an account or sign in to join them.Users

Search

I'm at a loss then, sorry

Just a quick note as it might be useful to others: Today I was pulling my hair off trying to understand why the LR rewrite rules where not working properly on a website, turned out that my real-estate filtering form was making a query like

?view=map&region=lombardia&price-from=100000&price-to=1600000

The problem was that the "region" parameter was conflicting with the $url-region parameter used by LR. Of course fixing was easy but finding the problem hard.

This pull request removes the Redirect mechanism. See the pull request for a discussion about it.

I want to create such structure:

http://example.com              -> landing page to select language
http://example.com/pt-br/       -> home in portuguese
http://example.com/en/          -> home in english
http://example.com/pt-br/page   -> page in portuguese
http://example.com/en/page      -> page in english

The default is having the same page in "/", "/pt-br" and "/en". How can I solve this?

I'm thinking in have the index page with Language Redirect DS unselected. When people visit "/", one template is showed. If people visit "/pt-br" or "en", the language param is created, and other template is shown. Is it a good solution?

You could use the version vladG mentioned above. It removes the redirect and allows the URL structure you mentioned. I'll incorporate his changes in the next version. See the discussion at GitHub for mor information.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.2 or above
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.0 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details