ya u r rt i have two one root and one in forum i removed the one in my forum but the problem is still exist.url is correct but always load the default forum page
then you will know where is it directing. I am not at your server nor psychic so can't guess your setup.
I think you best actually learn about server rules properly. These types of topics honestly don't deserve much input, this stuff that server admin should make an effort to learn, not make blind faith changes.
if you have come with your attempt than that is a different matter.
sir now check my .htaccess file is there any error
# modified
# If you modify this file then change the above line to: # Modified
<IfModule mod_rewrite.c>
RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is in a subfolder then you need to specify it after the /.
# (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
#RewriteBase /garuda-forums
RewriteCond %{HTTP_HOST} ^example.com.so$ [NC]
RewriteRule (forum)(/.*|$) $1.example.com.so/$2 [R=302,L]
RewriteCond %{HTTP_HOST} ^(forum).examples.com.so$ [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^forum(/.*)?$ garuda-forums/index.php/?p=$1 [QSA,L]
</IfModule>
# modified
# If you modify this file then change the above line to: # Modified
<IfModule mod_rewrite.c>
RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is in a subfolder then you need to specify it after the /.
# (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
#RewriteBase /garuda-forums
RewriteCond %{HTTP_HOST} ^example.com.so$ [NC]
RewriteRule ^(garuda-forums)(/.*|$) forum.example.com.so/$2 [R=302,L]
RewriteCond %{HTTP_HOST} ^(forum).example.com.so$ [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ garuda-forums/index.php/?p=$1 [QSA,L]
</IfModule>
Like I said if you learn what the rules mean you will understand your error.
and with this i posted my subdomains .htaccess file code
my subdomain looks like forum.example.com
it lies in a folder called "garuda-forum"
my subdomain .htaccess file is
# modified
# If you modify this file then change the above line to: # Modified
<IfModule mod_rewrite.c>
RewriteEngine On
# Certain hosts may require the following line.
# If vanilla is in a subfolder then you need to specify it after the /.
# (ex. You put Vanilla in /forum so change the next line to: RewriteBase /forum)
RewriteBase /garuda-forums/
RewriteCond %{HTTP_HOST} ^forum.example.com.so$ [NC]
RewriteRule ^(garuda-forums)(/.*|$) example.com.so/$2 [R=302,L]
RewriteCond %{HTTP_HOST} ^(forum).example.com.so$ [NC]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ garuda-forums/index.php/?p=$1 [QSA,L]
</IfModule>
with this my forums pretty urls are working but always default page is showing means forum's home page no any other page loads but every page's url working correctly what is the error and help me
Saju, I'm about to close this thread. We keep running in circles trying to help you, so follow advices that are given. I'll keep the thread open for now, but if we keep running in circles, it's no use.
but when i tried this forum in www.example.com/garuda-forums/.. it works fine all the pretty urls are working fine....but when it comes in a subdomain things will change .y this happens i dont know.pls help me.
Comments
thanks for ur support sir its partially cleared but whenever i clicked in any link the url is correct but page wont load it shows the home page always
that is probably becuase you have two htaccess files. one in root an one in /forum. the one in forum you can remove.
grep is your friend.
ya u r rt i have two one root and one in forum i removed the one in my forum but the problem is still exist.url is correct but always load the default forum page
change this line
RewriteRule ^(.*)$ forum/index.php/?p=$1 [QSA,L]
to
RewriteRule ^forum(/.*)?$ forum/index.php/?p=$1 [QSA,L]
grep is your friend.
can u halp me ???
if you wan to find out where the route is going
put
[QSA,R]
instead of
[QSA,L]
then you will know where is it directing. I am not at your server nor psychic so can't guess your setup.
I think you best actually learn about server rules properly. These types of topics honestly don't deserve much input, this stuff that server admin should make an effort to learn, not make blind faith changes.
if you have come with your attempt than that is a different matter.
grep is your friend.
sir now check my .htaccess file is there any error
Like I said if you learn what the rules mean you will understand your error.
grep is your friend.
ya sure i will try sir thanks for your support and advise
is there anyone to help me
this is my main website root .htacess file
and with this i posted my subdomains .htaccess file code
my subdomain looks like forum.example.com
it lies in a folder called "garuda-forum"
my subdomain .htaccess file is
with this my forums pretty urls are working but always default page is showing means forum's home page no any other page loads but every page's url working correctly what is the error and help me
please read what I have already written!
if you want to know were it is being redirected change
[QSA,L]
to[QSA,R]
then you can adjust your settings.
grep is your friend.
Saju, I'm about to close this thread. We keep running in circles trying to help you, so follow advices that are given. I'll keep the thread open for now, but if we keep running in circles, it's no use.
There was an error rendering this rich post.
kk sir i am trying to do my best
sir when i tried it no change and never i got any further information
try
grep is your friend.
sorry sir it doesn't work,thanks for ur advice
but when i tried this forum in www.example.com/garuda-forums/.. it works fine all the pretty urls are working fine....but when it comes in a subdomain things will change .y this happens i dont know.pls help me.
ok well that is not right
if you go to garuda-forums it should redirect to forum.example.com.so
You not being supper clear about you directory structure.
you should have
give me an example....
I think you have set up you sub-domian wrong in you cpanel, chose the wrong setting.
How about actually providing a link, instead of all this theoretical stuff
grep is your friend.
kk sir i will give u the exact url
my forum url is
http://forum.garudacreations.com