Hi, i am using shared host and no right to access httpd.conf And my CPanel allow my domain to point to /balr.../public_html/www.soskod.com/ Which mean whoever type www.soskod.com/index.php will be access /balr.../public_html/www.soskod.com/index.php Then how can i edit .htaccess so it point to /balr.../public_html/www.soskod.com/web/index.php Thanks
Use htaccess to redirect to /web. something like Redirect 301 / http://www.example.com/web/ Read more: http://www.webweaver.nu/html-tips/web-redirection.shtml http://www.isitebuild.com/301-redirect.htm http://httpd.apache.org/docs/1.3/howto/htaccess.html
Sorry, i forgot some additional info i dont want "/web" to be visible to public, need everything to be done in transparent
Then search for mod rewrite. This looks like it fits your question: RewriteEngine on RewriteRule ^/$ /web/ http://httpd.apache.org/docs/2.0/misc/rewriteguide.html