× Here you can get community support related to ReDJ.

Removing folders from path

  • derekk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #5582 by derekk
Removing folders from path was created by derekk
I tried what is shown in the screencap to remove this from all the urls "/index.php/Newsletter-Articles/"

gyazo.com/21e41929dd981b3e8c0eb260b46aea04

from: \/index.php/Newsletter-Articles/$
To: {scheme}://{siteurl}{pathrtrim /index.php/Newsletter-Articles/}

However it did not work
It should have changed mysite.com/index.php/Newsletter-Articles/when-friends-stop-homeschooling
to mysite.com/when-friends-stop-homeschooling

Thank you

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

More
8 years 2 months ago #5585 by admin
Replied by admin on topic Removing folders from path
Try this rule:
From URL: "/index.php/Newsletter-Articles/
To URL: {scheme}://{siteurl}/{pathltrim /index.php/Newsletter-Articles/}{queryfull}
Request only: true (checked)

Kind regards,
Luigi

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

  • derekk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #5587 by derekk
Replied by derekk on topic Removing folders from path
Excellent, it worked perfectly.

Thank you Luigi.

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

More
8 years 2 months ago #5591 by admin
Replied by admin on topic Removing folders from path
U're welcome.

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

  • derekk
  • Topic Author
  • Offline
  • New Member
  • New Member
More
8 years 2 months ago #5595 by derekk
Replied by derekk on topic Removing folders from path
Not sure if you want this to be a new post, you may move it if you like.
I also want to add the exact same folders to an url?
It want it to redirect
from: mysite.com/myarticlealias
to: mysite.com/Newsletter-Articles/myarticlealias

Thank you

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

More
8 years 2 months ago #5596 by admin
Replied by admin on topic Removing folders from path
It's easy as 123 :)
From URL: ^/myarticlealias
To URL: {scheme}://{siteurl}/Newsletter-Articles/myarticlealias{pathltrim /myarticlealias}
Request only: true (checked)

Kind regards,
Luigi

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

Time to create page: 0.148 seconds