Redirect problems
5 posts
• Page 1 of 1
Redirect problems
Hi,
I want to redirect an old url to a new one with 301 redirect.
My link looks like this: celebrity/alecia-moore/actor/13/
I want to be redirected to: celebrity/alecia-moore/profile/13/
Can somebody point me to the right direction?
Thank you!
I want to redirect an old url to a new one with 301 redirect.
My link looks like this: celebrity/alecia-moore/actor/13/
I want to be redirected to: celebrity/alecia-moore/profile/13/
Can somebody point me to the right direction?
Thank you!
Re: Redirect problems
I wonder how can I redirect values from string (ex. actor, musician...) to value (ex. profile) even if I don't know the url...
Re: Redirect problems
Hello,
Please try the following rule:
RewriteBase /
RewriteRule ^(celebrity/.+)/(?:actor|musician)/(\d+/)$ /$1/profile/$2 [NC,R=301,L]
Please try the following rule:
RewriteBase /
RewriteRule ^(celebrity/.+)/(?:actor|musician)/(\d+/)$ /$1/profile/$2 [NC,R=301,L]
Re: Redirect problems
It doesn't work for me... I have tried also with RegexTest and is something wrong.
Re: Redirect problems
Hello,
What test URL do you use to check the rule?
Please enable logging in httpd.conf by putting
RewriteLogLevel 9
and provide rewrite.log records for that request.
What test URL do you use to check the rule?
Please enable logging in httpd.conf by putting
RewriteLogLevel 9
and provide rewrite.log records for that request.
5 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 4 guests