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...
i need this asap! thanks!
Moderator: General Moderators
Re: i need this asap! thanks!
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?
What have you tried so far?
Re: i need this asap! thanks!
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
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