Rewrite rule

Hello,

How can I make all url goes to another one. For example

/xyz/what-ever goes /mku
/xyz/f.php?ff=ds&g=d3 goes /mku
etc.

OOzy

Redirect.

Regards,

DK

Hello,

I read the whole thing but could understand it.

Should I use

AliasMatch ^/xyz/(.*) /mku

I am confused.

Thank you

OOzy

OO,

If you want to redirect every request to xyz to mku, then a simple Redirect 301 /xyz /mku should suffice. However, that will NOT kill the request to f.php with a query string. To do one or the other, you’d need mod_rewrite (see tutorial linked in my signature). Pay particluar attention to the RewriteCond %{QUERY_STRING} section and codes as those are what you’ll need (probably a Skip flag, too).

Regards,

DK