× Here you can get community support related to ReDJ.

Issues with subdomains

  • webbus
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 9 months ago #2719 by webbus
Issues with subdomains was created by webbus
Hi,

I have installed joomla in a subdomain.

I am trying to redirect from cat1 to cat2.

I have written the rule as follows

From URL: ^/parent-category/cat-(cat1)/
To URL: http://{siteurl}/parent-category/cat2/

But this is not working. I guess I am having issue with the macro {siteurl}

I tried adding the subdomain folder name in the plugin base path also.
I tried changing the "(" symbol with corresponding html code also. But it is not working.

Could you please help me in this.

Regards,
Kala Mohan.

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

More
9 years 9 months ago #2724 by admin
Replied by admin on topic Issues with subdomains
Hi,
the trick is to insert your current subfolder in the plugin options (under advanced -> base path). In this way the ^ (starts with) will work and the rule will remain the same when you will move the site on the root (just drop the base path from the plugin settings).

Kind regards,
Luigi

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

  • webbus
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 9 months ago #2728 by webbus
Replied by webbus on topic Issues with subdomains
Thanks Luigi,

But I am still not able to make it redirect. I guess I am missing some simple thing.

I sent you the my login details to info (at) selfget.com

Could you please take a look when your time permits.

Best Regards,
Kala Mohan

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

More
9 years 9 months ago #2730 by admin
Replied by admin on topic Issues with subdomains
Ok,
let me check and I will advise ASAP.

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

More
9 years 9 months ago - 9 years 9 months ago #2731 by admin
Replied by admin on topic Issues with subdomains
Hi,
the issue is you didn't escape the parentheses ( and ). They are special chars so when you need literally you have to escape them.

Moreover, you missed the {pathltrim} macro in the destination to dynamically change the single URL.

Kind regards,
Luigi

P.S. For security reasons please disable or delete my temporary backend access.
Last edit: 9 years 9 months ago by admin.
The following user(s) said Thank You: webbus

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

  • webbus
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 9 months ago #2745 by webbus
Replied by webbus on topic Issues with subdomains
Thanks so much Luigi,

My site is redirecting perfectly now. :)

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

Time to create page: 0.115 seconds