wickedstangs
Well-known member
Can someone post What is the appropriate .htaccess for Full Friendly URLs.
I know what htaccess.txt file is what in there do I have to do for Full Friendly URLs?htaccess.txt file that comes with xenforo installation / upgrade package
You do realise to estivate it you rename to .htaccess instead of htaccess.txt?I know what htaccess.txt file is what in there do I have to do for Full Friendly URLs?
ok so when I upload the file htaccess.txt need to rename it to .htaccess ?You do realise to estivate it you rename to .htaccess instead of htaccess.txt?
# 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 405 default
ErrorDocument 406 default
ErrorDocument 500 default
ErrorDocument 501 default
ErrorDocument 503 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|crossdomain\.xml|robots\.txt) - [NC,L]
RewriteRule ^.*$ index.php [NC,L]
</IfModule>
Funny how we can miss the obvious. Or not realise they are only obvious once we know the ropes.You do realise to estivate it you rename to .htaccess instead of htaccess.txt?
Its a Managed VPS from KnownHost.com - Your high quality managed VPS hosting providerThe .htaccess file is included. htaccess.txt is a copy and a reference of the original version. Normal situations don't need to do any renaming.
I'm guessing that your server doesn't have AllowOverride on. Is this a shared server or a VPS/dedicated? Have you set up Apache yourself?
checking it now.. Its a new forum just made it this week.. I just contacted my hosting to find out about the AllowOverride...As Mike said, either the server isn't configured or you have deleted the .htaccess file at some point.
You may need to look at your Apache configuration then, specifically AllowOverride. Out of the box, it's off so .htaccess files are ignored. (Alternatively you could need to set the RewriteBase in .htaccess, but this is very rare.)
AllowOverride is enabled. It will always be enabled on a cPanel server unless you've taken steps to disable it. Only two exceptions exist on your server, for the following directories:
--
/usr/local/apache/htdocs
/usr/local/apache/cgi-bin
--
We use essential cookies to make this site work, and optional cookies to enhance your experience.