307 behaviour ok 200 not-ok on the same rule
-
ppeer
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 25
-
Thank you received: 0
-
-
10 years 9 months ago - 10 years 9 months ago #2550
by ppeer
Hi Luigi,
The 200 rule doesn't take the ^/*$ part of my rule. It only takes without / at the end. Not with.
I've implemented the rule:
FROM: ^/business/*$
TO: http://{siteurl}/index.php?option=com_jumi&view=application&fileid=1&start=5&icategory=business
As expected the 307 redirect generates:
example.com/index.php?option=com_jumi&view=application&fileid=1&start=5&icategory=business
both on example.com/business OR example.com/business/
As NOT expected the 200 redirect generates:
example.com/business on example.com/business (OK)
but entering example.com/business/ (NOT OK)
results in a faulty page.
I've already been switching hierarchy for this rule but without success. It looks like there is a difference between browser (307) and server
interpreatation (200 redirect) of this rule.
Example: playlisto.org/business (with or without / at the end)
Last edit: 10 years 9 months ago by ppeer.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 9 months ago #2552
by admin
Hi,
sorry but I'm not sure about the rule. If you need to match any URL that starts with /business and includes or not the slash the rule should be:
If you want to match ONLY folders under /business then:
The *$ part doesn't add any to the rule. Having said that, could you please provide me some full URL examples to test by myself? If you prefer, send me an email at info(at)selfget.com.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
ppeer
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 25
-
Thank you received: 0
-
-
10 years 9 months ago #2554
by ppeer
...I've just send you a PM with url's to clear my case.
regards
Peter
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 9 months ago #2555
by admin
Hi Peter,
it seems a problem of the {preg_match} used in the destination.
Please, check your mailbox and let me know.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
ppeer
-
Topic Author
-
Offline
-
Junior Member
-
Less
More
-
Posts: 25
-
Thank you received: 0
-
-
10 years 9 months ago #2571
by ppeer
...probably the solution to my problem:
enable the native sef friendly joomla setting; now the {siteurl} macro can handle more than one "/" in the source url.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 9 months ago #2576
by admin
Not sure if the problem is solved now. If not, we need to schedule a remote support session due to your complex environment.
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
Time to create page: 0.183 seconds