× Here you can get community support related to ReDJ.

redirect - noob

  • simhecny
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #4655 by simhecny
redirect - noob was created by simhecny
I'm sorry, but I cant understand how it works, I want simple redirect - I think its simple.. and I cant do that,

old site (other script, not joomla) is now: mysite.com/ARCHIWUM
but I cant redirect all to this addres,

so I want to create rules, ex.:
mysite.com/articles.php?xxxxx
to
mysite.com/ARCHIWUM/articles.php?xxxxx

or

articles.php[all parameters]
/ARCHIWUM/articles.php[all parameters]


PLEASE help me, dont laugh
I search forum, but I cant understand :))

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

More
8 years 2 months ago #4656 by admin
Replied by admin on topic redirect - noob
Hi,
I understand (correct me if I am wrong) that you need to drop the old site foder from any URL. If so create the following rule:
From URL: ^/ARCHIWUM/
To URL: {scheme}://{siteurl}/{pathltrim /ARCHIWUM/}{queryfull}
Request only: true (checked)

Kind regards,
Luigi

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

  • simhecny
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #4657 by simhecny
Replied by simhecny on topic redirect - noob
thanks for help,
I'm sorry, my English isnt good, maybe I try again to say what I need:

new site adress (joomla): www.wosp.malogoszcz.info
old site - archive - (not joomla) is now: www.wosp.malogoszcz.info/archiwum

many adress now has error 404, I need to coreect them, ex.:
www.wosp.malogoszcz.info/articles.php?id=21 - wrong adress
correct should be: www.wosp.malogoszcz.info/archiwum/articles.php?id=21

or
www.wosp.malogoszcz.info/galeria/thumbnails.php?album=45 - wrong adress
correct should be: www.wosp.malogoszcz.info/archiwum/galeria/thumbnails.php?album=45

I need one rule which which will be a pattern to all
I hope I explain enough. thank you :)

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

More
8 years 2 months ago #4658 by admin
Replied by admin on topic redirect - noob
As far as I can see from your example it is not possible to have a single rule for all because I cannot see a common pattern. You can try:
From URL: ^/articles\.php\?id=
To URL: {scheme}://{siteurl}/archiwum{path}{queryfull}
Request only: true (checked)

And:
From URL: ^/galeria/
To URL: {scheme}://{siteurl}/archiwum{path}{queryfull}
Request only: true (checked)

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

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

  • simhecny
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #4659 by simhecny
Replied by simhecny on topic redirect - noob
This first rule is exactly what I need. Now I can adapt this redirection, and manually create rest of redirections
Thanks. Big thanks Luigi. :):) :)

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

More
8 years 2 months ago #4660 by admin
Replied by admin on topic redirect - noob
Happy to hear this. U're welcome :)

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

Time to create page: 0.103 seconds