Page Index Toggle Pages: 1 Print
PermaLinks (Read 397 times)
Captain John

Oct 10th, 2007 at 4:02am
Print Post  

On Apache Server, FollowSymLinks must be allowed, actually RedirectMatch must work before using PermaLinks.

  This works on a  IIS  (disclaimer ::  only been able to tested on 5, and at this time untested on 5.1 or 6 changes anything on this bit

1. add a folder to your web site (might work using a virtual folder, but that's untested) to allow for the symlink.
This will depend on how you want to approach the permalink naming, but whatever bit of the URL is 'fake', it will need this adding.

2. drop a (blank) default doc (default.htm) or whatever into the (real) folder.

3. right-click the folder, not the file, and go to properties.

4. select directory> redirect to url

5. add the url for redirect so as to point at '/your cgi root/ or yabb root/' or where ever you'd normally point for yabb.

6. untick all three of the boxes below, otherwise IIS drops any GET arguments

7. Apply this, set your permalink options up - watching those "/"s - and all should work.

If you get a 404, some part of either your permalink strings in AC is wrong or you've got excess "/"s somewhere.

« Last Edit: May 23rd, 2008 at 4:13pm by »  
Back to top
IP Logged
Captain John

Re: PermaLinks
Reply #1 - Feb 21st, 2008 at 11:50pm
Print Post  
how to setup permalinks

create a .htaccess file with the following line in it.

Select All
RedirectMatchUrl ^/virtual_url/(.*)$ 

virtual_url is the path part you name in the permalink settings eg. "messages"
Keep in mind that this path part is really virtual and should not be an existing folder inside your webspace !!!

upload this .htaccess file in your www root on the server

The following translation is now made for you

gets translated in a permalink looking like:

if the user's server does not implement the RedirectMatchUrl Apache directive. For those that need something on a nix machine that doesn't produce a 500 Internal Error, they might want to give this a try:

Select All
RewriteEngine   On
RewriteCond   %{REQUEST_URI}   topics/(.*)/([^/]+\.[^/])
RewriteRule   ^topics/([0-9]+)/([0-9]+)/([0-9]+)/([^/]+)/(.+)$$5 [L]

RewriteRule   ^topics/(.+)/(.+)$$2 [L] 

The first rule checks for images and CSS files and passes the request appropriately. I'm using "topics" as my Permalink Symlink URL part, so change yours appropriately. The second rule handles the permalink. Of course, these directives go into your .htaccess file.

or a shorten version of above
Select All
RewriteEngine On #If not done already
RewriteCond %{REQUEST_URI} /Symlink_url/ [NC]
RewriteRule ^.*/Symlink_url(.*[0-9])$ /cgi-bin/yabb2/$1 [L]  

replace with your forums link eg. topics or articles
« Last Edit: Feb 26th, 2008 at 4:13am by »  
Back to top
IP Logged
Page Index Toggle Pages: 1
  « Board Index ‹ Board  ^Top