Forum Moderators: phranque

Message Too Old, No Replies

Serious issue in URL rewriting

         

sajjad27s

11:15 am on Aug 20, 2008 (gmt 0)

10+ Year Member



Hi

I need to implement a rewrite rule like this.

If user enters this:

[mywebsite.com...]

then I need this URL to rewrite in

[mywebsite.com...]

(NOTE: anydomain.com can be any domain name or any tld.)

Thanks.

g1smd

1:19 pm on Aug 20, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



This has been covered at least once every day this month.

Check previous posts in this forum, and the sticky threads at the top of the list.

Post your best effort code here if you can't get it to work.

jdMorgan

5:56 pm on Aug 20, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Please see this thread [webmasterworld.com] in our Forum Library to get started.

Jim

sajjad27s

6:16 am on Aug 21, 2008 (gmt 0)

10+ Year Member



Can anyone give some posts links fot the issue ?

jdMorgan

6:27 am on Aug 21, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There is a link to a fairly comprehensive tutorial in my previous post in this thread. Or you can try the WebmasterWorld site search [webmasterworld.com].

Jim

sajjad27s

6:35 am on Aug 21, 2008 (gmt 0)

10+ Year Member



Someone else gave me

RewriteRule ^([^/]+).com$ /mypage.php?d=$1.com [L]

(for .com domains only)

But its not working. Aneone explain why? Its just going on and on until I hit Esc.