.htaccess - Drupal as CMS / integration with existing website, menu path problems -
i have website built on zend framework (which not of relevance problem) , drupal installed in subfolder / drupal.
in root of website have following .htaccess
setenv application_env development rewriteengine on # handled drupal rewritecond %{request_uri} ^/blog.*$ [or] rewritecond %{request_uri} ^/financing.*$ [or] rewritecond %{request_uri} ^/marketing.*$ rewriterule (^.*$) /drupal/index.php?q=$1 [l] # handled zend framework rewritecond %{request_filename} -s [or] rewritecond %{request_filename} -l [or] rewritecond %{request_filename} -d rewriterule ^.*$ - [nc,l] rewriterule ^.*$ index.php [nc,l]
i have idea goes this: if access www.example.com/some-url zend framework or static file handled, when www.example.com/blog/some-blog-post, handled drupal , part, ok.
1) problem drupal links absolute path www.example.com/drupal/blog/some-blog-post (of course, alias post blog/some-blog-post, because drupal installed in subfolder, adds /drupal before blog/some-blog-post). because of .htaccess rules in root folder of website, following url valid www.example.com/blog/some-blog-post. want somehow remove /drupal part url. how can accomplish ?
2) how can link pages outside /drupal folder, relative paths, example /some-folder/some-page.html, , root of website / ? know can link them absolute url, www.example.com/some-folder/some-page.html, not me.
drupal uses base_path() path, can influence $base_url variable in settings.php, file contains documentation how that.
Comments
Post a Comment