How do I Mod Rewrite when I got a subdomain?

Reply

Join Date: Jun 2004
Posts: 118
Reputation: Arizona Web is an unknown quantity at this point 
Solved Threads: 2
Arizona Web's Avatar
Arizona Web Arizona Web is offline Offline
Junior Poster

How do I Mod Rewrite when I got a subdomain?

 
0
  #1
Jul 30th, 2004
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?
Need a website designer? arizona web design : phoenix web design : MCP Media intelligent web design and web development solutions. MCP Media is owned and operated by Chris Hooley - who happens to be a real nerd... on purpose :-)
Reply With Quote Quick reply to this message  
Join Date: Jun 2004
Posts: 118
Reputation: Arizona Web is an unknown quantity at this point 
Solved Threads: 2
Arizona Web's Avatar
Arizona Web Arizona Web is offline Offline
Junior Poster

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

 
0
  #2
Aug 8th, 2004
no help? Anybody have any ideas?
Need a website designer? arizona web design : phoenix web design : MCP Media intelligent web design and web development solutions. MCP Media is owned and operated by Chris Hooley - who happens to be a real nerd... on purpose :-)
Reply With Quote Quick reply to this message  
Join Date: Jul 2004
Posts: 234
Reputation: PoA is an unknown quantity at this point 
Solved Threads: 8
PoA PoA is offline Offline
Posting Whiz in Training

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

 
0
  #3
Aug 8th, 2004
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Linux Servers and Apache Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC