Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams.
Ask questions, find answers and collaborate at work with Stack Overflow for Teams. Explore Teams
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I need to redirect an URL with a variable, eg.
http://www.mydomain.com/foo/55555 should go to http://www.mydomain.com/bar/55555 where 55555 is a variable number. I
http://www.mydomain.com/foo/55555
http://www.mydomain.com/bar/55555
55555
Do I need to use rediret of rewriteredirect or rewrite?
I need redirect an URL with variable, eg.
http://www.mydomain.com/foo/55555 to http://www.mydomain.com/bar/55555 where 55555 is a variable number. I need use rediret of rewrite?
http://www.mydomain.com/foo/55555 should go to http://www.mydomain.com/bar/55555 where 55555 is a variable number.
Do I need to use redirect or rewrite?