| | |
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?
The first one works fine, the 2nd one is no good. Any ideas?
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 :-)
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 :-)
•
•
Join Date: Jul 2004
Posts: 234
Reputation:
Solved Threads: 8
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
![]() |
Similar Threads
- Looking to exchange links with PR5 sites or above (Relevant Link Exchanges)
- mod rewrite directories to subdomains help (Linux Servers and Apache)
- regarding vbulletin mod rewrite (Linux Servers and Apache)
- Set the files on a subdomain when it is created (Linux Servers and Apache)
- IPB 2.0.0 mod rewrite (Search Engine Optimization)
- jsp will lost its session while subdomain-rewrite applied (JSP)
Other Threads in the Linux Servers and Apache Forum
- Previous Thread: need help setting up apache server
- Next Thread: Running asp or asp.net on apache
| Thread Tools | Search this Thread |
.net amazon apache apple asus bbc centos cisco citrix cloud cloudcomputing datacenters debian dell desktops development distributions distros drivers economy eeepc energy enterprise fedora fsf gadgets gentoo gos government gpl hardware hp hyper-v ibm java jobs kindle knoppix kvm laptop laptops lawsuits ldap licensing limo linustorvalds linux linuxfoundation linuxmagazine magazines microserver microsoft mobile mobilephones netbook netbooks news novell olpc open openmoko openoffice opensolaris opensource opensuse openvz operatingsystems os pc pcworld plathome politics qumranet redhat rhel robot russia server servers slackware software solaris source stallman sun supercomputer support tivo torvalds training tv ubuntu umpc unix virtualization vmware windows x86 xandros xen





