× Here you can get community support related to ReDJ.

redirect index.php?start=6

  • kalixo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 5 months ago #4999 by kalixo
redirect index.php?start=6 was created by kalixo
Dear REDJs,
could you please help me to redirect:
FROM:
index.php?start=6
to:
/CATEGORY/page=6

so I need to replace "index.pho?start=" to "/CATEGORY/page=".

Thanks in advance!
Looking forward to hear from you soon!
Kalixo!

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

  • kalixo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 5 months ago #5001 by kalixo
Replied by kalixo on topic redirect index.php?start=6
(I don't use index.php in my urls)

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

More
8 years 5 months ago #5004 by admin
Replied by admin on topic redirect index.php?start=6
Tru this rule:
From URL: ^/index\.php\?start=6$
To URL: {scheme}://{siteurl}/CATEGORY/page=6
Request only: true (checked)
The following user(s) said Thank You: kalixo

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

  • kalixo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 5 months ago #5006 by kalixo
Replied by kalixo on topic redirect index.php?start=6
Dear Admin,
Thank you! It works great!

Could you also please advise how to change that code to prevent other numers faults? (how to chenge "6" to "any number"?)

Thanks!

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

More
8 years 5 months ago #5011 by admin
Replied by admin on topic redirect index.php?start=6
From URL: ^/index\.php\?start=[0-9]+$
To URL: {scheme}://{siteurl}/CATEGORY/page=6
Request only: true (checked)

More info here:
dev.mysql.com/doc/refman/5.7/en/regexp.html

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

  • kalixo
  • Topic Author
  • Offline
  • Senior Member
  • Senior Member
More
8 years 5 months ago #5029 by kalixo
Replied by kalixo on topic redirect index.php?start=6
Dear Admin, almost perfect, but i need to leave this what can be placed as "6" in this example.
This is page nr 6, but it can be also page 666, so I need to redirect any number as below:

ftom ...start=6
to: ...../page=6

from .....start=666
to: ...../page=666

from .....start=34
to: ...../page=34

Could you plase change this code?
Thanks,
Kalixo

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

Time to create page: 0.141 seconds