Change part of URL with ReDj
-
Krxon
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
7 years 9 months ago - 7 years 9 months ago #5939
by Krxon
Hello
I wonder is it possible to change part of URL with ReDj?
So, no redirection, just change.
This is original url: www.website-name/photo-gallery/event/sport.html
and I would like to change it into: www.website-name/photo-gallery/gallery/sport.html
/photo-gallery/ - this is Joomla menu item alias to component EventGallery which we use as gallery only.
/event/ - this is EventGallery task name and developer said that this is task name and it can't be changed easily.
/sport is gallery name and it changes according to selected gallery
If /event/ part could be completely removed, even better because It doesn't need to be visible for us.
Thanks,
Regards
Joomla 3.6.5
ReDj Enterprise 1.8.0 1.8.1
Last edit: 7 years 9 months ago by Krxon.
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 9 months ago #5942
by admin
Yes,
you can create the following 301 redirection rule, check if it works, and then change it to 200 (Internal Redirect).
From URL: ^/photo-gallery/event/sport\.html$
To URL: {scheme}://{siteurl}/photo-gallery/gallery/sport.html
Request only: true (checked)
Kind regards,
Luigi
Please Log in or Create an account to join the conversation.
-
Krxon
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
7 years 9 months ago #5944
by Krxon
Hello
I tried it and it doesn't work.
htaccess is active, Joomla SEF turned on, ReDJ plugin is active.
Do I need to fiddle with pluginorder?
Could it be because this is on local WAMP server?
Actual web URL is http://127.0.0.1/villasun2/
I'm also using Rocket Theme gantry5 powered template
on PHP 7.0.10
I also tried to change several other urls and nothing happens.
Thanks
Regards
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
7 years 9 months ago #5945
by admin
Hi,
you have a basepath villasun2 so you need to put /villasun2 in the base path field under ReDJ plugin advanced settings. This way the rullewill be the samein production (just remember to remove the base path).
Currently it doesn't work due to the caret (start with) that prevents the URL to match the rule.
Kind regards
Please Log in or Create an account to join the conversation.
-
Krxon
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 4
-
Thank you received: 0
-
-
7 years 9 months ago #5946
by Krxon
Hi
I've added basepath and still no luck.
However, I'm testing this on fresh Wamp installation and previously I've used older Xampp so maybe there is some incomplete or wrong settings.
So, to save both your and my time, next week, when ready - I'll upload website online and I'll ask again.
If that's OK with you
Thanks for your help
Regards
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
Time to create page: 0.151 seconds