Forum Moderators: phranque

Message Too Old, No Replies

htaccess root dir

         

pumuklee

10:26 pm on Aug 8, 2006 (gmt 0)

10+ Year Member



hy
i have an oscommerce site
the oscommerce is not in the root dir it is in the ./oscommrce dir

what i want:
1. to set the the apache that the root dir is the oscommerce dir

2. how can i do this
3. and when im click on the links in the oscommerce-the root dir must be remain the same-because i try with html redirecting and in this case always come this www.mysite.com/oscommerce and i want just www.mysite.com

thanks

pumuklee

12:23 am on Aug 9, 2006 (gmt 0)

10+ Year Member




System: The following message was spliced on to this thread from: http://www.webmasterworld.com/apache/3039397.htm [webmasterworld.com] by jdmorgan - 9:41 pm on Aug. 8, 2006 (CDT -5)


hy

i want to make:

for every request of my site
www.example.com goes directly to www.example.com/oscommerce/
but the link remain www.example.com

and also for a request like
www.example.com/oscommerce/kuku.php => www.example.com/kuku.php

what must i wrote in my htaccess?

thanks

jdMorgan

2:54 am on Aug 9, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



pumuklee,

For best results, please review our forum charter [webmasterworld.com].

Also, there are links to several resources there which may help.

Basically, you want to rewrite, not redirect, all requests to the /oscommerce subdirectory, unless the URL already contains the /oscommerce subdirectory path. This can be accomplished with one RewriteCond and one RewriteRule. The resources cited in our charter will help you get started.

Jim