Issues with subdomains
-
webbus
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
10 years 9 months ago #2719
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 8 months ago #2724
by admin
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
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
10 years 8 months ago #2728
by webbus
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.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 8 months ago - 10 years 8 months ago #2731
by admin
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: 10 years 8 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
-
Less
More
-
Posts: 9
-
Thank you received: 0
-
-
10 years 8 months ago #2745
by webbus
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.153 seconds