× Here you can get community support related to ReDJ.

A (hopefully) simple question

  • Stefanini
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago #1928 by Stefanini
A (hopefully) simple question was created by Stefanini
Hi there,

I'm in the process of migrating my web site from Joomla 1.x to 2.5 (to begin with). Things are proceeding well ... except the static (non categorized) articles are not accessible via URLs like the following, where 2606 is just the id of one of the countless static articles.

www.mywebsite25.com/content/view/2606/

But the following URL does work

www.mywebsite25.com/index.php/2606/

Summing up I should redirect

www.mywebsite25.com/content/view/nnnn/

to

www.mywebsite25.com/index.php/nnnn/

Where nnnn is the article id.

Any help would be greatly appreciated!

Cheers,
Marco

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

More
10 years 4 months ago #1932 by admin
Replied by admin on topic A (hopefully) simple question
Hi Marco,
try this ReDJ rule:
From URL: ^/content/view/[0-9]+/$
To URL: http://{scheme}/index.php/${a}/
Request only: true (checked)
Placeholders:a={preg_match 1}/\/content\/view\/(.*)\/$/i{/preg_match}

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

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

  • Stefanini
  • Topic Author
  • Offline
  • New Member
  • New Member
More
10 years 4 months ago #1937 by Stefanini
Replied by Stefanini on topic A (hopefully) simple question
Thank you so much Luigi and happy holidays!

Marco

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

More
10 years 4 months ago #1940 by admin
Replied by admin on topic A (hopefully) simple question
Happy holidays to you too. :)

Luigi
The following user(s) said Thank You: Stefanini

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

Time to create page: 0.123 seconds