htaccess rules for phpbb

Discussions and support about the different URL Rewriting techniques for phpBB2.

Moderator: Moderators

htaccess rules for phpbb

Postby sceltic » Sun May 28, 2006 12:22 am

the rules

Options +FollowSymlinks
RewriteEngine On
RewriteBase /

I know about rewrite engine on

but what do the other two do?

Options +FollowSymlinks ?

RewriteBase / ?

And are they vital?

I ask because the site I am looking at has used able2knows mod and that did not require these!
sceltic
PR0
PR0
 
Posts: 55
Joined: Thu May 04, 2006 4:07 pm

Advertisement

Postby dcz » Sun May 28, 2006 12:38 am

The source for Apache core Feature : Apache Core Features

Options +FollowSymLinks :

Options directive
Syntax: Options [+|-]option [[+|-]option] ...
Context: server config, virtual host, directory, .htaccess
Override: Options
Status: core

The Options directive controls which server features are available in a particular directory.

option can be set to None, in which case none of the extra features are enabled, or one or more of the following:

FollowSymLinks
The server will follow symbolic links in this directory.
Note: even though the server follows the symlink it does not change the pathname used to match against <Directory> sections.
Note: this option gets ignored if set inside a <Location> section.


Simlinks :

A symbolic link (often symlink, especially in verb form, or soft link) is a special type of directory entry in modern Unix (or Unix-like) filesystems that allows to almost transparently refer to another directory entry, typically a file or a directory.


This is used by Apache to allow use of symlinks, which according to where and how you are hosted can make the mod rewrite to work better. If it works without in your particular case, then you can get rid of it.

RewriteBase :
The RewriteBase directive explicitly sets the base URL for per-directory rewrites. As you will see below, RewriteRule can be used in per-directory config files (.htaccess). There it will act locally, i.e., the local directory prefix is stripped at this stage of processing and your rewriting rules act only on the remainder. At the end it is automatically added back to the path.


When set to / for an .htaccess located in the root folder, it will just tell Apache to start the rewriting at the root level in a faster way than if it had to go for the default setting. Usually it works as well without ;)

++
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21238
Joined: Fri Apr 28, 2006 9:03 pm


Return to phpBB2 mod Rewrite

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 1 guest