i'm sure this is simple, but my head is being stupid todayi have a site with two domains - if you use one domain (d1, the address of that folder on the server), the SSIs don't work, but if you use the other domain (d2, which is really a symlink to the folder on the server), they work just fine...i have no control over the server, so there's nothing i can tweak there...i tried using an .htaccess redirect any requests for d1 to d2, but that either kills it or simply does nothing or generates a redirect loop...i've tried (each individually, of course, and with some minor variations on each):
redirect / http://www.new.com/redirect http://www.old.com/ http://www.new.com/Options +FollowSymLinksRewriteEngine onRewriteRule (.*) http://www.new.com/$1 [R=301,L]RewriteEngine onRewriteRule ^index.html$ http://www.new.com/
1/5/2009 10:11:06 AM
try this
1/5/2009 10:18:27 AM
^ nothing happens...it doesn't break anything, but nothing actually changes
1/5/2009 10:32:17 AM
i should have tested it first.. try this and see if it redirects http://www.old.com
1/5/2009 10:41:56 AM
^ still doesn't do anything
1/5/2009 11:00:17 AM
Try this:
1/5/2009 11:25:25 AM
^ that one gave me an "internal server error"...i'm kinda glad to know this isn't super simple, because then i'd feel dumb...at the same time, i want it to work thanks for all of the suggestions thus far
1/5/2009 12:34:33 PM
Try this now, lol:
1/6/2009 3:40:43 PM
bump
7/6/2010 9:50:30 PM
thxu okay, more of me sucking at mod_rewrite so let's say i have a URL string:
http://www.mysite.com/?month=5&day=10&type=icecream
http://www.mysite.com/5/10/icecream
Options +FollowSymLinksRewriteEngine OnRewriteBase /RewriteRule ^?month=([a-zA-Z0-9]+)&day=([a-zA-Z0-9]+)&type=([a-zA-Z0-9]+)$ $1/$2/$3/ [L]
Options +FollowSymLinksRewriteEngine OnRewriteBase /RewriteRule ^(?month=[a-zA-Z0-9]+)(&day=[a-zA-Z0-9]+)(&type=[a-zA-Z0-9]+)$ $1/$2/$3/ [L]
7/6/2010 9:51:21 PM
lemme guess, you're doing this with joomla
7/6/2010 10:08:40 PM
gross, joomlaI know Google links are for dbags, but there are seriously a million resources out there for thishttp://www.google.com/search?q=seo+friendly+urls+htaccess
7/6/2010 10:32:26 PM
no, not joomla...i've never used joomla yeah, i can google as well as most others, but i'm still making bupkiss...i figure there's something tiny i'm missing, so i was hoping someone with more experience than i might be able to take a look at and point it out to me
7/7/2010 6:47:48 AM
If you'd doing it on the servers I think you're doing it on, mod_rewrite is disabled.
7/7/2010 10:33:58 AM
^ dreamhost?[Edited on July 7, 2010 at 10:39 AM. Reason : .]
7/7/2010 10:39:47 AM
^^^^^^ what you're trying to do doesn't really make sense to me -- are you sure you don't want the opposite of what you said? i.e. use mod_rewrite to turn the friendly url into /index.php?bla=1&ble=2 etc
7/7/2010 10:49:55 AM
^ yeah, i'm sure i know what i want to do the URLs are currently "ugly" (&month=5&day=10&type=icecream) and i want to make them "pretty" (5/10/icecream)
7/7/2010 10:53:17 AM
^^^ CoE webservers.
7/7/2010 11:15:55 AM
nope, definitely dreamhost anyone with dreamhost know if there might be something that's keeping me from doing the mod_rewrite (assuming what i've got up there is correct, i mean)
7/7/2010 11:20:27 AM
http://wiki.dreamhost.com/Mod_rewrite
7/7/2010 11:26:41 AM
^ not quite what i was looking for, but a linked page gave me this:
7/7/2010 1:13:32 PM