vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 Programming Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=15)
-   -   Help Combining 2 Seperate .htaccess Files (https://vborg.vbsupport.ru/showthread.php?t=137565)

teedizz 01-26-2007 08:16 AM

Help Combining 2 Seperate .htaccess Files
 
Hello, I run a site that currently has 3 seperate databases. 1 for the site itself, 1 for the forums, and 1 for a different type of script. Well my main site requires a .htaccess in the server directory as well does the other script I run. When I edit 1, the other dont work and visa versa so how can I combine the 2 to where they both function correctly? Can someone pleease lend a helping hand.

Main site .htaccess file

Code:

# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#  AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
  <IfDefine SSL>
    SetEnvIf User-Agent ".*MSIE.*" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
  </IfDefine>
</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#
<IfModule mod_rewrite.c>
  RewriteEngine on
  RewriteRule ^download-([^/\.]+)-?$ downloadalbum.php?qtr=$1
  RewriteRule ^url-([^/\.]+)-?$ download.php?qtr=$1
</IfModule>


Script that i run htaccess file

Code:

ErrorDocument 404 /community/index.php/public/notfound

RewriteEngine On

RewriteCond %{REQUEST_URI} !^/community/file/.*
RewriteCond %{REQUEST_URI} !^/community/install/.*
RewriteCond %{REQUEST_URI} !^/community/update/.*
RewriteCond %{REQUEST_URI} !^/community/design/.*
RewriteCond %{REQUEST_URI} !^/community/plugins/.*
RewriteCond %{REQUEST_URI} !^/community/index.php/.*

RewriteRule ^(.*)$ /community/index.php/$1 [L]


Can someone pleease show how to combine both of those into please. Thanks.

akanevsky 01-26-2007 04:43 PM

Try this:

Code:

ErrorDocument 404 /community/index.php/public/notfound

# For this to work, you must include the parameter 'Options' to
# the AllowOverride configuration
#
# Example:
#
# <Directory "/usr/local/apache/htdocs">
#  AllowOverride Options
# </Directory>
#
# 'All' with also work. (This configuration is in the
# apache/conf/httpd.conf file)

# The following makes adjustments to the SSL protocol for Internet
# Explorer browsers

<IfModule mod_setenvif.c>
  <IfDefine SSL>
    SetEnvIf User-Agent ".*MSIE.*" \
            nokeepalive ssl-unclean-shutdown \
            downgrade-1.0 force-response-1.0
  </IfDefine>
</IfModule>

# If Search Engine Friendly URLs do not work, try enabling the
# following Apache configuration parameter
#
# AcceptPathInfo On

# Fix certain PHP values
# (commented out by default to prevent errors occuring on certain
# servers)
#
<IfModule mod_rewrite.c>
  RewriteEngine on

  RewriteRule ^download-([^/\.]+)-?$ downloadalbum.php?qtr=$1
  RewriteRule ^url-([^/\.]+)-?$ download.php?qtr=$1

  RewriteCond %{REQUEST_URI} !^/community/file/.*
  RewriteCond %{REQUEST_URI} !^/community/install/.*
  RewriteCond %{REQUEST_URI} !^/community/update/.*
  RewriteCond %{REQUEST_URI} !^/community/design/.*
  RewriteCond %{REQUEST_URI} !^/community/plugins/.*
  RewriteCond %{REQUEST_URI} !^/community/index.php/.*

  RewriteRule ^(.*)$ /community/index.php/$1 [L]
</IfModule>



All times are GMT. The time now is 10:21 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.02254 seconds
  • Memory Usage 1,721KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (2)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete