Shemo
September 21st, 2009, 15:24
I'm new to mod_rewrite and am in need of some help......
I figured most of it out, but I don't have a clue on how to rewrite a url for a subdomain.
basically, this is what I got so far and it works fine:
RewriteEngine on
RewriteRule ^home$ index.html [L]
RewriteRule ^gallery$ gallery.html [L]
RewriteRule ^upload$ upload.html [L]
RewriteRule ^links$ links.html [L]
RewriteRule ^support$ support.html [L]
my sub domains are:
blog.ugly-cars.com
gallery.ugly-cars.com
the gallery.html is already changed to /gallery, but gallery.ugly-cars.com is an iframe within the gallery.html page so it needs to have a rewrite done. the blog sub domain is just a simple word press blog that is its own page.
any help is appreciated.
I figured most of it out, but I don't have a clue on how to rewrite a url for a subdomain.
basically, this is what I got so far and it works fine:
RewriteEngine on
RewriteRule ^home$ index.html [L]
RewriteRule ^gallery$ gallery.html [L]
RewriteRule ^upload$ upload.html [L]
RewriteRule ^links$ links.html [L]
RewriteRule ^support$ support.html [L]
my sub domains are:
blog.ugly-cars.com
gallery.ugly-cars.com
the gallery.html is already changed to /gallery, but gallery.ugly-cars.com is an iframe within the gallery.html page so it needs to have a rewrite done. the blog sub domain is just a simple word press blog that is its own page.
any help is appreciated.