Status
Not open for further replies.
10 comments
staticname should be remain same but dynamic should change. basically i want to redirect old stuff to new url

and staticname1 also remain same
 
Can you be more precise please ?

Are their a lot of urls or just a few urls you want to redirect ?

Try what I have given you above first ... that should do what you are trying to do ..
 
PHP:
Redirect 302 (.*)-staticnameversion([0-9]+)\.html$ $1-staticname.html




Have you tried the code that I gave you the first time ?

Let me explain a bit

(.*) - matches 'somedynamicname'

([0-9]+) - is for any number after 'staticnameverion' .

Make sure to turn on the rewritengine before you write these rules..
 
can u please help

RewriteRule ^/rss/(.*)-my-download$ /rss/$1-your-download [R=301,L]

i want to do some thing like this

/rss/something-my-download to /rss/something-your-download

is this write rewrite rule?
 
Try these -


PHP:
RewriteRule ^rss/(.*)-my-download$ rss/$1-your-download [R=301,L]

                                       OR

RewriteRule ^rss/(.*)-my-download$ rss/$1-your-download [R=301]

Also make sure that their are no conflicting rules for the same url..
 
Status
Not open for further replies.
Back
Top