hi, im finally done with the new cms for one site, but now the paths are completely different. i know i can do some basic redirects with .htaccess like Redirect 301 http://www.mydomain.com/classic/page.asp http://www.mydomain.com/page.php but how does it work with additional parameters? i have do redirect all those pages with parameters too: http://www.mydomain.com/classic/detail.asp?id=254 http://www.mydomain.com/detail.php?id=254 anyone good in regular expressions?
Options +Indexes Options +FollowSymlinks RewriteEngine on RewriteBase / RewriteRule ^classic/([^.]+)\.asp$ http://www.domain.com/$1.php [R=301,L]
great, it works now. but i still dont understand why it is "$1.php". shouldt it be something like "newpage.php?$1" because i need my parameters "$1" AFTER the ".php"? i assume $1 are the first parameters here as defined by regex, or am i on a wrong track here?
Where's the URL change in... .asp?id=254 and .php?id=254 It's .php and asp. You don't need it at the number spot if the numbers stay the name.