Comments (11)
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.
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.
I am just guessing.. maybe something like
RewriteRule ^fr/actualites/(.*)$ index.php?q=actualites/&filter=$1 [L,QSA]
from yams.
Yes. I'm already try this and guess what. I'm redirect to:
/fr/actualites?filter=something.html
from yams.
Then I do not understand your needs, you need to give more clear details. Maybe a link to your website..
from yams.
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.
@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.
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.
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.
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.
Damned! It doesn't work! I believed it.
from yams.
Related Issues (20)
- Multilingual alias not generating HOT 1
- Deprecated functions in Evo 1.0.15
- Maintain YAMS HOT 4
- Warning: mysql_num_rows() expects parameter 1 to be resource HOT 10
- Transliteration for every lang possible?
- YAMS and content limit HOT 2
- SEO-strict URL cause infinite redirecting / wrong redirects
- Tab lang content width 100% HOT 4
- modx 1.2.0 update to 1.2.1 YAMS not working on frontend HOT 3
- [F] Alias path don't show
- Replace (yams)-placeholders inside Ditto-tpl
- Parse Error HOT 1
- Evo-Cache not working when setting "cache_type" is set to "... and $_GET-params"
- The "vericode-image" of the eForm snippet isn't showing up with the current YAMS version HOT 4
- Redirects in infinity loop HOT 26
- YAMS (1.2.0 RC7) and the „if (1.4)“ snippet in Modx 1.4.8. HOT 4
- YAMs php warning after evolution 2.0.2 migration HOT 7
- Problem with <li> in pagebuilder block + YAMS. HOT 1
- EVO 3.1.7 page caching issues HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yams.