× Here you can get community support related to ReDJ.

Dynamic redirection

  • Newsboy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago #4406 by Newsboy
Dynamic redirection was created by Newsboy
Hi!
First of all, i would like to say a big thanks for this great component!!!
I have a little problem with a redirection rule...
I have a dynamically change url:
index.php?option=com_userprivatepage&view=userpage&comment=39#comment39
where the numbers are change ex. ......&comment=40#comment40, &comment=41#comment41...etc.
I would like all of these URLs redirect to an page.
I make this rule:
FROM:
/index\.php\?option=com_userprivatepage&view=userpage&comment=[0-9]{1,2}#comment[0-9]{1,2}$
TO:
{scheme}://{siteurl}/uzenetkuldes.html
...but it doesn't work.. :(
Please hel, what is the correct syntax?
Thanks for any help!

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #4414 by admin
Replied by admin on topic Dynamic redirection
Hi and thanks.
Unfortunately what you are trying to do will never work. The reason is the piece at the end of any URL that starts with # is an anchor. This is a kind of "bookmark" for a page position and can be send from the server to the client browser to position the page, but the client will ALWAYS drop this part before to make a server request. This means your server will never get the #blablabla part.

You can check yourself enabling the developer tools in the browser and looking at the network tab.

Kind regards,
Luigi
The following user(s) said Thank You: Newsboy

Please Log in or Create an account to join the conversation.

  • Newsboy
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 5 months ago #4415 by Newsboy
Replied by Newsboy on topic Dynamic redirection
Thanks Luigi!
Strange, but when i cut the final part of the code (#comment39) its work! :)
Your answer add this idea for me, so thanks for your reply again!

Best regards,

Laci

Please Log in or Create an account to join the conversation.

More
8 years 5 months ago #4416 by admin
Replied by admin on topic Dynamic redirection
Hi Laci,
your are welcome :)

Please Log in or Create an account to join the conversation.

Time to create page: 0.091 seconds