Code Monkey home page Code Monkey logo

Comments (11)

Deesen avatar Deesen commented on August 18, 2024

I don´t understand and I am no htaccess-professional. But I can try to help. You say you are redirected to

/fr/actualites?filter=first-article.html

so your rule

RewriteRule ^fr/actualites/(.*)$ fr/actualites?filter=$1 [L,N]

seems to work as expected?

Maybe try removing N so the end of line is just [L]? I am refering to https://httpd.apache.org/docs/2.4/rewrite/flags.html#flag_n

from yams.

Neoziox avatar Neoziox commented on August 18, 2024

Indeed. But if you look the normal rule

RewriteRule ^fr/(.*)$ index.php?q=$1 [L,QSA]

you are not redirect to index.php?q=something

I want the same behavior. If I'm on /fr/actualites/something.html I want to keep this URL.

Am I more clear?

from yams.

Deesen avatar Deesen commented on August 18, 2024

I am just guessing.. maybe something like

RewriteRule ^fr/actualites/(.*)$ index.php?q=actualites/&filter=$1 [L,QSA]

from yams.

Neoziox avatar Neoziox commented on August 18, 2024

Yes. I'm already try this and guess what. I'm redirect to:
/fr/actualites?filter=something.html

from yams.

Deesen avatar Deesen commented on August 18, 2024

Then I do not understand your needs, you need to give more clear details. Maybe a link to your website..

from yams.

Neoziox avatar Neoziox commented on August 18, 2024

In the webpage /fr/actualites/ I have several links which looks like /fr/actualites/something.html
But in Evo Manager, I have only one ressource: /fr/actualites/ in which I have a snippet that retrieves the information in the URL. Is this more clear?
PS I don't have a link to the website yet. Sorry.

from yams.

Neoziox avatar Neoziox commented on August 18, 2024

@Deesen If not, in your opinion, where can I post my question or who can I contact who could help me (someone you may know maybe)?

from yams.

Deesen avatar Deesen commented on August 18, 2024

Maybe on Slack Evo-Channel or on stackoverflow.com?

But maybe it would be easier to change your snippet to use $_POST instead of $_GET. You could send a form/ post-data to /fr/actualites/. This way you can be sure you stay on the same resource without getting redirected, while having the filter-data available in $_POST. Did I understand you correct? Does that make sense?

from yams.

Neoziox avatar Neoziox commented on August 18, 2024

I have a personal database (in a TV with MultiTV). Each entry of this database can be a specific page in the same way that each resource of Evo is a page. So, in the same way that each resource have an alias as access to its page, I want every entry in the database to have its page with its alias. To be able to do that, I use the same method that Evo: $_GET. As I said, I already used this method but without YAMS. In some way, it's different but I don't understand why and where.
I'm really sorry I was not clear enough before.

from yams.

Deesen avatar Deesen commented on August 18, 2024

Ah ok, I got it now ;-). Not sure how to solve it yet but maybe you want to try:

  • Check if you use "Seo Strict URLs" in EVO System-Settings (which can cause redirects), if yes maybe try turning it off
  • In YAMS-module -> Tab "Configuration" -> "URL Redirection Settings" -> "MODx/EVO URLs" you can try to enter the ID of resource "actualites" to it, which will prevent YAMS to redirect in any way (also useful if you want to stay on your startpage like "http://example.com", instead of generally being redirected to "example.com/fr/start.html". If YAMS is causing your issue, maybe this helps. More info here http://www.evolution-docs.com/extras/yams/yams-configuration

from yams.

Neoziox avatar Neoziox commented on August 18, 2024

Damned! It doesn't work! I believed it.

from yams.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.