Keith wrote: > Hi all > > Not really a php issue per se - sorry. > But I'm sure someone here is bound to know the answer. :-) > > I have a main site that is accessible at say > "http://www.somedomain.com/somedir/" but I want visitors to be able to > access the site using simply "http://www.somedomain.com" AND for the > resulting URL displayed to STILL say "http://www.somedomain.com" and not > "http://www.somedomain.com/somedir/". > > Should this be possible using the .htaccess file and some mod_rewrite rule? > Toyed around with that but couldn't get it to work. when you finished toying did you take time to read the Apache docs on mod_rewrite? you need *something like*: RewriteRule ^/(.*)$ /somedir/$1 [L] > > ANY help would be greatly appreciated, thanks > > P.S. Platform: Linux RedHat (running Apache) > > scorpy > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php