+ Reply to Thread
Results 1 to 7 of 7

Thread: How to make Domain's Other Directories Accessible

  1. #1

    Question How to make Domain's Other Directories Accessible

    Hello,

    My flynax installation is found here: http://domain.com

    I have vbulletin here: http://domain.com/forums

    and photopost gallery here: http://domain.com/gallery

    My problem is, how can i make other directories accessible like:

    http://domain.com/video or

    http://domain.com/social

    if i will have installations in these folders like wordpress or phpfox.

    For now, any other directory or folder accessed will bring to a 404 page in flynax.

    What changes do i have to make? Do I have to make ch in the htaccess file? The present .htaccess file is listed below:

    ==========================================

    # enable apache morRewrite module #
    RewriteEngine on

    RewriteBase /

    # set files headers


    Header set Cache-Control "max-age=2678400, public, must-revalidate"



    # deflate static content

    AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/x-component text/css application/x-javascript application/javascript


    # allow request methods

    Order deny,allow
    Allow from All


    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f

    ErrorDocument 404 /404.html

    # non last slash redirect
    RewriteCond %{REQUEST_URI} !(\.html|\.xml|\.txt|[\/])$ [NC]
    RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [NC,L,R=301]

    # define system languages
    #RewriteRule ^([a-zA-Z]{2})$ index.php?page=$1 [QSA,L]

    # define paging
    RewriteRule ^([^//]+)/?(.*)?/index([0-9]*).ht(m?ml?)$ index.php?page=$1&rlVareables=$2&pg=$3 [QSA,L]

    # define listing
    RewriteRule ^(([\w\-\_]+)?/)(.+)-l?([0-9]+).ht(m|ml)$ index.php?page=$2&rlVareables=$3&listing_id=$4 [QSA,L]

    # wildcard request
    RewriteCond %{HTTP_HOST} ^((?!www\.|m\.|mobile\.).*)\..+\.[^/]+$ [NC]
    #RewriteCond %{HTTP_HOST} ^((?!www\.|m\.|mobile\.).*)\..+$ [NC] # FIRST LEVEL DOMAIN (localhost) USAGE
    RewriteRule (.*) index.php?page=%1&wildcard&rlVareables=$1 [QSA,L]

    # account request (sub-directory)
    RewriteRule ^((\w{2})/)?([\w-_]{3,})$ index.php?page=$3&lang=$2&account_request [QSA,L]

    # define single pages
    RewriteRule ^([^//]+)/?(^/*)?.ht(m?ml?)$ index.php?page=$1 [QSA,L]

    # define other pages
    RewriteRule ^([^//]+)/?(.*)?/?(.*)?(.ht(m?ml?)|/+)$ index.php?page=$1&rlVareables=$2 [QSA,L]

    #Google and Yahoo sitemap
    RewriteRule ^([a-z_]*)?sitemap([0-9]*).xml$ plugins/sitemap/sitemap.php?search=google&number=$2&mod=$1 [QSA,L]
    RewriteRule ^yahoo-sitemap.txt$ /plugins/sitemap/sitemap.php?search=yahoo [QSA,L]
    RewriteRule ^urllist.txt$ /plugins/sitemap/sitemap.php?search=urllist [QSA,L]
    My Flynax Installation: Car Finder Philippines

  2. #2

    Thumbs up

    no body there to answer this query, since its there for 7 months.

  3. #3
    Would love to know the answer to this to add a wordpress site
    Chris

    New Site: CameraSpecs

    Old Site: MotorAdsUk

  4. #4
    Strange how this thread is sill not answered:

    you have to add RewriteBase /your_subdirectory/ in the htaccess file in the subdirectory to make it working

    for example you have flynax in root of site.com

    and also you have site.com/blog/ which is not working because of flynax htaccess file in root directory:

    Go to blog directory ftp, find htaccess file, open it and make sure it have

    RewriteEngine on
    RewriteBase /blog/

  5. #5
    Simple as that in the blogs htaccess file. Thanks Mike
    Chris

    New Site: CameraSpecs

    Old Site: MotorAdsUk

  6. #6
    Junior Member
    Join Date
    Oct 2012
    Posts
    18
    I'sorry but this is not truth.
    When you have 2 .htaccess files , one in root, and one in folder 'subdomain' then on the main domain w w w.domain.c o m ads dont work.There is error 404. Can you please explain how to do this.
    i need subdomain in this format: subdomain.domain.c o m
    Thank you.
    Last edited by Drazen Corak; December 13, 2013 at 05:38 PM.

  7. #7
    It seems you have specific problem, strange how subdomain affects root website links. I think problem resulted from another thing, maybe something wrong with mod_rewrite apache module itself?

    Please pm me details to check or better submit a ticket to helpdesk with login details to investigate that.

+ Reply to Thread