i need this asap! thanks!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
prue_
Forum Commoner
Posts: 64
Joined: Thu May 07, 2009 10:34 pm

i need this asap! thanks!

Post 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...
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: i need this asap! thanks!

Post 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?
prue_
Forum Commoner
Posts: 64
Joined: Thu May 07, 2009 10:34 pm

Re: i need this asap! thanks!

Post 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
Post Reply