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

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

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

  • yaa sure Vanilla version 2.0.18.8

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

  • 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]

  • sir i did it

  • @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]

  • post between

    ~~~
    
    ~~~

    grep is your friend.

  • you mean i just post the above code in between this

  • sorry sir it wont works i got a full error message

  • x00x00 MVP
    edited May 2013

    Not on your site.

    post your .htaccess between the three tilda

    ~~~ [code goes here] ~~~

    grep is your friend.

  •  # 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>
    
  • but it gives me an error message

  • @saju said:
    but it gives me an error message

    Good for you :-)

    There was an error rendering this rich post.

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

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

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

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

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

  • thats wont work . because its in a subdomain

  • that in the web root .httaccess

    grep is your friend.

Sign In or Register to comment.