943,617 Members | Top Members by Rank

Jul 30th, 2004
0

How do I Mod Rewrite when I got a subdomain?

Expand Post »
I just decided to put a sub domain on my directory, but the .htaccess rules I wrote don't apply for the subdomain.

Here are the code snippets, can anybody see what I am doing wrong here?

RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^web-directory/category/(.*)/(.*) web-directory/index.php?catid=$1&start=$2


RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^http://www.web-directory.mcpmedia.com/category/(.*)/(.*) http://www.web-directory.mcpmedia.com/web-directory/index.php?catid=$1&start=$2

The first one works fine, the 2nd one is no good. Any ideas?
Similar Threads
Reputation Points: 16
Solved Threads: 2
Junior Poster
Arizona Web is offline Offline
118 posts
since Jun 2004
Aug 8th, 2004
0

Re: How do I Mod Rewrite when I got a subdomain?

no help? Anybody have any ideas?
Reputation Points: 16
Solved Threads: 2
Junior Poster
Arizona Web is offline Offline
118 posts
since Jun 2004
Aug 8th, 2004
0

Re: How do I Mod Rewrite when I got a subdomain?

I am not sure whether it works. Just give it a try and do let me know the result.
RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^web-directory/category/(.*)/(.*)/$ /web-directory/index.php?catid=$1&start=$2


RewriteEngine on
Options +FollowSymlinks
RewriteBase /
RewriteRule ^http://www.web-directory.mcpmedia.com/category/(.*)/(.*)/$ 
http://www.web-directory.mcpmedia.com/web-directory/index.php?catid=$1&start=$2
PoA
Reputation Points: 19
Solved Threads: 9
Posting Whiz in Training
PoA is offline Offline
234 posts
since Jul 2004

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Linux Servers and Apache Forum Timeline: need help setting up apache server
Next Thread in Linux Servers and Apache Forum Timeline: Help Me Get Apache 2 Working Please :)





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC