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.
Options

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

sajusaju New
edited May 2013 in Vanilla 2.0 - 2.8

pls help me i installed my vanilla forum in one of my sites's subdomain that is forum.example.com.so what change i need to do in my .htaccess file pls help me. i also enable my pretty urls is true.what i do

Tagged:
«13

Comments

  • Options
    hgtonighthgtonight ∞ · New Moderator

    What version of Vanilla are you running?

    Can you paste your current .htaccess file here?

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    yaa sure Vanilla version 2.0.18.8

  • Options
    hgtonighthgtonight ∞ · New Moderator

    Thanks.

    @hgtonight said:
    Can you paste your current .htaccess file here?

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options

    my .htaccess file is

    modified

    If you modify this file then change the above line to: # Modified


    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 %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/?p=$1 [QSA,L]

  • Options

    sir i did it

  • Options

    @hgtonight said:
    Thanks.

    >

    modified

    If you modify this file then change the above line to: # Modified

    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 %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php/?p=$1 [QSA,L]

  • Options

    post between

    ~~~
    
    ~~~

    grep is your friend.

  • Options

    you mean i just post the above code in between this

  • Options

    sorry sir it wont works i got a full error message

  • Options
    x00x00 MVP
    edited May 2013

    Not on your site.

    post your .htaccess between the three tilda

    ~~~ [code goes here] ~~~

    grep is your friend.

  • Options
     # 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 /
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule ^(.*)$ index.php/?p=$1 [QSA,L]
    </IfModule>
    
  • Options

    but it gives me an error message

  • Options

    @saju said:
    but it gives me an error message

    Good for you :-)

    There was an error rendering this rich post.

  • Options

    ok i got u mean just post it here rt sorry for the missunderstanding

  • Options
    hgtonighthgtonight ∞ · New Moderator

    Read lines 5-8 and follow the instructions:

    @saju said:

    # 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 /
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteRule ^(.*)$ index.php/?p=$1 [QSA,L]
    </IfModule>
    

    Search first

    Check out the Documentation! We are always looking for new content and pull requests.

    Click on insightful, awesome, and funny reactions to thank community volunteers for their valuable posts.

  • Options
    x00x00 MVP
    edited May 2013

    Have you followed this advice?

    # 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 /
    

    You could try assuming the subdomian, and its directory are named the same.

    RewriteBase /forum
    RewriteCond %{HTTP_HOST} ^example.com.so$ [NC]
    RewriteRule (forum)(/.*|$) $1.example\.com.so/$2 [R=302,L]
    
    RewriteCond %{HTTP_HOST} ^(forum).example.com.so$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php/?p=$1 [QSA,L]
    

    grep is your friend.

  • Options

    yaa i already done that but no hope its gives me the same result

  • Options
    x00x00 MVP
    edited May 2013
    RewriteCond %{HTTP_HOST} ^example.com.so$ [NC]
    RewriteRule (forum)(/.*|$) $1.example.com.so/$2 [R=302,L]
    
    RewriteCond %{HTTP_HOST} ^(forum).example.com.so$ [NC]
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ forum/index.php/?p=$1 [QSA,L]
    

    grep is your friend.

  • Options

    thats wont work . because its in a subdomain

  • Options

    that in the web root .httaccess

    grep is your friend.

Sign In or Register to comment.