php - Drupal how to change url path -


i have server multiply sites, example have domain http://site.com/ , .htaccess file in server root:

rewriterule ^site.com/ - [l] rewritecond %{http_host} ^site\.com$ rewritecond %{document_root}/site%{request_uri} -d rewriterule [^/]$ %{request_uri}/ [r,l] rewritecond %{http_host} ^site\.com$ rewriterule (.*) site.com/$1 [l,qsa] 

and have installed drupal in path: c:/servers/web/www/site.com/drupal problem site links looks - http://site.com/site.com/drupal/user/logout, found $base_url in settings.php, change , site links looks nice http://site.com/user/logout. create new problem - links redirect me index.php (not working normaly)

whats wrong?

dont change $base_url>you should not touch that.i think u need virtual host entry in webserver (for apache httpd.conf)upto c:/servers/web/www/site.com


Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -