XF 1.3 Friendly URL == Help

Dzana

Member
Hey Guys,

I have a Problem with the Friendly URL.
My .htaccess:


Code:
#    Mod_security can interfere with uploading of content such as attachments. If you
#    cannot attach files, remove the "#" from the lines below.
#<IfModule mod_security.c>
#    SecFilterEngine Off
#    SecFilterScanPOST Off
#</IfModule>

ErrorDocument 401 default
ErrorDocument 403 default
ErrorDocument 404 default
ErrorDocument 500 default

<IfModule mod_rewrite.c>
    RewriteEngine On

    #    If you are having problems with the rewrite rules, remove the "#" from the
    #    line that begins "RewriteBase" below. You will also have to change the path
    #    of the rewrite to reflect the path to your XenForo installation.
    #RewriteBase /xenforo

    #    This line may be needed to enable WebDAV editing with PHP as a CGI.
    #RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]

    RewriteCond %{REQUEST_FILENAME} -f [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^(data/|js/|styles/|install/|favicon\.ico) - [NC,L]
    RewriteRule ^.*$ index.php [NC,L]
   
    RewriteRule ^/threads/ /forum/threads
RewriteRule ^/forums/ /forum/forums
</IfModule>

My Forum is in the main Directory ( / )

mod_rewrite is activated
 
As the instruction in the .htaccess say:

# If you are having problems with the rewrite rules, remove the "#" from the
# line that begins "RewriteBase" below. You will also have to change the path
# of the rewrite to reflect the path to your XenForo installation.
#RewriteBase /xenforo

Try removing the # and use just the forward slash:

RewriteBase /
 
There is (if I remember correctly) an allowOverRide setting that needs to be changed in the Apache vhost definition. I gave up on Apache a long time ago (nginx and OLS for me) but somebody may know exactly what it is.
 
This isn't part of the standard .htaccess file. Did you try to remove these? Might want to just for a test to see if these are the problem:

Code:
RewriteRule ^/threads/ /forum/threads
RewriteRule ^/forums/ /forum/forums
 
Top Bottom