-
March 30, 2013, 12:35 PM
#1
Junior Member
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]
-
November 3, 2013, 09:39 AM
#2
Member
no body there to answer this query, since its there for 7 months.
-
November 7, 2013, 07:01 PM
#3
Guru
Would love to know the answer to this to add a wordpress site
-
November 8, 2013, 05:26 AM
#4
Guru
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/
-
November 8, 2013, 01:48 PM
#5
Guru
Simple as that in the blogs htaccess file. Thanks Mike
-
December 13, 2013, 05:20 PM
#6
Junior Member
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.
-
December 16, 2013, 06:00 AM
#7
Guru
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.