Please upgrade here. These earlier versions are no longer being updated and have security issues.
HackerOne users: Testing against this community violates our program's Terms of Service and will result in your bounty being denied.

my seo urls not working if i try to enable this i got an error message Internal Server Error

2

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.

  • sajusaju New
    edited May 2013

    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

  • x00x00 MVP
    edited May 2013

    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 ???

  • x00x00 MVP
    edited May 2013

    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.

  • sajusaju New
    edited May 2013

    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>
    
  • x00x00 MVP
    edited May 2013
    # 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.

    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

    rewriteengine on
    rewritecond %{HTTP_HOST} ^example.com$
    rewriterule ^$ "http\:\/\/www\.example\.com\/" [R=301,L] #515297211ed55
    
    
    <IfModule mod_rewrite.c>
    </IfModule>
    <ifModule mod_expires.c>
    <filesMatch "\.(ico|flv)$">
    Header set Cache-Control "max-age=29030400, public"
    </filesMatch>
    <filesMatch "\.(jpg|jpeg|png|gif|swf)$">
    Header set Cache-Control "max-age=604800, public"
    </filesMatch>
    <filesMatch "\.(xml|txt|css|js)$">
    Header set Cache-Control "max-age=172800, proxy-revalidate"
    </filesMatch>
    <filesMatch "\.(html|htm|php)$">
    Header set Cache-Control "max-age=60, private, proxy-revalidate"
    </filesMatch>
    </ifModule>
    rewriterule ^scripts - [L]
    rewriterule (.*)\.html$ news.php?name=$1
    rewriterule (.*)\.htm$ categories.php?id=$1
    

    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

  • 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

  • sajusaju New
    edited May 2013

    @x00 said:
    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.

    sir when i tried it no change and never i got any further information

  • x00x00 MVP
    edited May 2013

    try

    # redirect to subdomian.
    RewriteCond %{HTTP_HOST} ^(www.)?example.com.so$ [NC]
    RewriteRule ^(garuda-forums)(/.*|$) http://$1.forum.example.com.so/$2 [R=302,L]
    
    
    #rewrite to index. 
    RewriteCond %{HTTP_HOST} ^(www.)?forum.example.com.so$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ http://forum.example.com.so/index.php?p=$1 [QSA,R=301]
    

    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

    /www
    ->.htaccess related to your www files
    /garuda-forums
    ->.htaccess related to you forum files
    ->index.php of your forum
    ->all the other forum files
    

    things will change .y this happens i dont know.pls help me.

    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.

  • @x00 said:
    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

    /www
    ->.htaccess related to your www files
    /garuda-forums
    ->.htaccess related to you forum files
    ->index.php of your forum
    ->all the other forum files
    

    How about actually providing a link, instead of all this theoretical stuff

    kk sir i will give u the exact url

    my forum url is
    http://forum.garudacreations.com

Sign In or Register to comment.