Page 1 of 1

i need this asap! thanks!

Posted: Thu Aug 13, 2009 4:29 am
by prue_
i want url1 to rewritten to url2 using htaccess..

url1 – http://www.domain.com/abc /page/ABCDE-123AG
url2 - http://subdomain.domain.com/domabc_page ... BCDE-123AG


thanks.. please try to reply...

Re: i need this asap! thanks!

Posted: Thu Aug 13, 2009 4:50 am
by onion2k
Noone is going to write the code for you. We'll help you write it though. Happy to do that.

What have you tried so far?

Re: i need this asap! thanks!

Posted: Thu Aug 13, 2009 4:59 am
by prue_
I've tried the ff: for dynamic and static (redirect and rewrite)

RewriteEngine on
Redirect 301 /page.php http://www.domain.com/folder/index.php
RewriteCond %{QUERY_STRING} ^id=20$
RewriteRule ^/pages.php$ http://www.domain.com/folder/index2.php? [L,R=301]
RewriteRule -something-(.*)\.html long_ugly_url.php?something=$1

but I'm wondering if url1 and url2 (on my first post) is possible to rewrite... it doesn't seem to be a dynamic url... thanks