i need to change all urls in one of my sites and i dont want to loose search engines traffic , i want to know how to do this exactly old files : site.com/page1-01.htm . (01 is a variable) site.com/page2-02.htm site.com/page3-03.htm etc .... To : site.com/category/page1 site.com/category/page2 site.com/category/page3 etc... Ps: ive tried this but it deosnt worked Redirect 301 /(.*)--(.*).htm http://www.site.com/category/$1 reply here no pm's Thanks
you didnt understand , i m talking about using variables !! not only a single page anyone have an idea ?
you need just a folder redirection...say from site.com/filename.ext to site.com/foldername/filename.ext for tht similar set of urls ??
not exactly , i know how to change only the folder name , i want also change the name of the pages ! please read my first post .
its the same thing , but i already resolved the problem by myself the answer is : RewriteBase / RewriteRule ^(.*)--(.*).htm http://www.site.com/category/$1 [R=301]