× Here you can get community support related to ReDJ.

Change part of URL with ReDj

More
7 years 2 months ago - 7 years 2 months ago #5939 by Krxon
Change part of URL with ReDj was created 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 2 months ago by Krxon.

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

More
7 years 2 months ago #5942 by admin
Replied by admin on topic Change part of URL with ReDj
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.

More
7 years 2 months ago #5944 by Krxon
Replied by Krxon on topic Change part of URL with ReDj
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.

More
7 years 2 months ago #5945 by admin
Replied by admin on topic Change part of URL with ReDj
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.

More
7 years 2 months ago #5946 by Krxon
Replied by Krxon on topic Change part of URL with ReDj
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.

More
7 years 2 months ago #5948 by admin
Replied by admin on topic Change part of URL with ReDj
Ok, see you later.

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

Time to create page: 0.104 seconds