954,228 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

How do I Mod Rewrite when I got a subdomain?

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?

Arizona Web
Junior Poster
118 posts since Jun 2004
Reputation Points: 16
Solved Threads: 2
 

no help? Anybody have any ideas?

Arizona Web
Junior Poster
118 posts since Jun 2004
Reputation Points: 16
Solved Threads: 2
 

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
Posting Whiz in Training
237 posts since Jul 2004
Reputation Points: 26
Solved Threads: 9
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: