Url Path redirect, some 301 redirects not working
-
Manos
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
10 years 9 months ago - 10 years 9 months ago #2706
by Manos
Last edit: 10 years 9 months ago by Manos.
Please Log in or Create an account to join the conversation.
-
Manos
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
10 years 9 months ago #2708
by Manos
I think now it's fixed using this rule
RewriteRule ^index.php/tech4all/(.*)$ /parousiaseis/$1 [R=301,L]
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 9 months ago - 10 years 9 months ago #2711
by admin
Hi,
the .htaccess rule is perfect but what about "el"?
Just for information, the same ReDJ rule is:
From URL: ^/index\.php/el/tech4all/
To URL:http://{siteurl}/parousiaseis/{pathltrim /index.php/el/tech4all/}
Request only: true (checked)
Kind regards,
Luigi
Last edit: 10 years 9 months ago by admin.
The following user(s) said Thank You: Manos
Please Log in or Create an account to join the conversation.
-
Manos
-
Topic Author
-
Offline
-
New Member
-
Less
More
-
Posts: 3
-
Thank you received: 0
-
-
10 years 9 months ago #2714
by Manos
Thanks for the reply, yeah thats why i added both redirects just in case. I use Redj only for signle url redirect think is better to add to .htaccess path redirect.
RewriteRule ^index.php/tech4all/(.*)$ /parousiaseis/$1 [R=301,L]
RewriteRule ^index.php/el/tech4all/(.*)$ /parousiaseis/$1 [R=301,L]
But is there a way to apply these 2 url path redirects with only 1 command? Maybe i need command to detect /tech4all/ anywhere in the url path and redirect it to /parousiaseis/
Also unicode characters in .htaccess is a pain.

Had to replace all % with \x. is there any command to do this for me?
RewriteRule ^el/\xCE\xB1\xCF\x81\xCF\x87\xCE\xB9\xCE\xBA\xCE\xAE/16-\xCE\xBD\xCE\xAD\xCE\xB1/(.*)$ /nea/$1 [R=301,L]
RewriteRule ^\xCE\xB1\xCF\x81\xCF\x87\xCE\xB9\xCE\xBA\xCE\xAE/16-\xCE\xBD\xCE\xAD\xCE\xB1/(.*)$ /nea/$1 [R=301,L]
Many thanks again for the support you offer to this forum. you are generus
Please Log in or Create an account to join the conversation.
Less
More
-
Posts: 3194
-
Thank you received: 441
-
-
10 years 8 months ago - 10 years 8 months ago #2732
by admin
Thanks, but I like to help my users, I'm lucky, because all my users are really kind..
Question one, try to replace this:
RewriteRule ^index.php/tech4all/(.*)$ /parousiaseis/$1 [R=301,L]
RewriteRule ^index.php/el/tech4all/(.*)$ /parousiaseis/$1 [R=301,L]
With this:
RewriteRule ^index.php/(el/){0,1}tech4all/(.*)$ /parousiaseis/$1 [R=301,L]
Question two, I do not know any trick for .htaccess, but on ReDJ there's a confortable "Decode URL" option for each rule
Kind regards,
Luigi
Last edit: 10 years 8 months ago by admin.
Please Log in or Create an account to join the conversation.
Time to create page: 0.137 seconds