MyBB Community Forums

Full Version: What is this code for in .htaccess?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Quote:Options -MultiViews +FollowSymlinks -Indexes

Because when I include that in .htacces file, i have an error.
All the url's cannot be access..

Then if i remove that line, all links in my site are working.

Before i transfered to another host, that code is working.
When i'm using the current new host, it appears an error and all the links including homepage are not accessable when that is include.
If you remove +FollowSymlinks Short URLs wont work.
So what is the right thing to do?

Currently, all my url's are working:

I just remove this whole line > Options -MultiViews +FollowSymlinks -Indexes

Is it right?
You likely don't have mod_rewrite installed on the server. not sure why, its is pretty standard.

Having the -multiviews and -indexes options are good for performance and for security. the followsymlinks simply allows the URL rewrite to work.
So the best thing to do right now is to request for mod_rewrite on my server?
do you need it? are you going to use SEO options for MyBB? If not, you don't need it. If you are, then you need to make sure its installed.

if you don't need it, just use

Options -MultiViews -Indexes

and your site should work fine.
FollowSymlinks doesn't have anything to do with SEO URLs. They're for symlinks on the filesystem that point to files/directories in other locations (shortcuts). Since you can make symlinks point anywhere, they're sometimes disabled for security reasons. Whether you need them depends on your server setup.

See also http://httpd.apache.org/docs/2.2/mod/core.html#options
Im using Google SEO, what is the right thing to do?
I have an Internal Server Error when i include this in htaccess > Options -MultiViews -Indexes
(2011-04-12, 05:18 PM)frostschutz Wrote: [ -> ]FollowSymlinks doesn't have anything to do with SEO URLs. They're for symlinks on the filesystem that point to files/directories in other locations (shortcuts). Since you can make symlinks point anywhere, they're sometimes disabled for security reasons. Whether you need them depends on your server setup.

See also http://httpd.apache.org/docs/2.2/mod/core.html#options

its needed for mod_rewrite though if you are going to be rewriting to/from directories in SEO URLs or other methods that change locations or have htaccess files per folder

Quote:Note: Enabling rewrites in per-directory context
To enable the rewriting engine for per-directory configuration files, you need to set RewriteEngine On'' in these files andOptions FollowSymLinks'' must be enabled. If your administrator has disabled override of FollowSymLinks for a user's directory, then you cannot use the rewriting engine. This restriction is needed for security reasons.

from http://httpd.apache.org/docs/2.0/mod/mod_rewrite.html


(2011-04-12, 05:24 PM)roldan Wrote: [ -> ]I have an Internal Server Error when i include this in htaccess > Options -MultiViews -Indexes

you need to ask your host if they have disabled htaccess override for those options.