• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Apache - Need help with symlinks/.htaccess...

UNCjigga

Lifer
Okay, I'm trying to install a content management system called TYPO3 for my website hosted at Dixie Systems. The main file for the site is index.php. However, this file actually is a symlink to index_re.php contained in another folder for the CMS program.

I have put the following in my .htaccess for root where the index.php symlink is:

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^typo3$ typo3/index_re.php
RewriteRule ^[^/]*.html$ index.php

However, when I browse over to the file, the browser returns an error: 'Forbidden: You don't have permission to access index.php on this server'

Also, the Apache error log shows: [Sun Mar 23 20:04:52 2003] [error] [client x.x.x.x] Symbolic link not allowed:
/x/x/x/fst/var/www/html/index.php

Is there a way to enable symbolic linking for my index pages with .htaccess??? What should I do? I tried Dixie support tickets but all they said was:

"I don't think clients can create symlinks. You may want to post in the forums to see if someone has a suggestion on how you can work around it with .htaccess. While we allow .htaccess, we don't officially support it or user-installed scripts."
 
Dixie Systems's support has left something to be desired.

I don't know exactly how to do it, but I know it can be done with .htaccess files. My question is: Would a HTML redirect work or does this index.php file actually do something. Also, there may be something else in the .htaccess file causing this problem.
 
I believe something along the lines of enabling symlinks for your index files would work as such:
<Files index.php>
Options +FollowSymLinks
</Files>

This can be put in a .htaccess file. You can learn more about files by checking out the <Files> Directive.
 
do what chsh1ca said, then ssh in and make the symlink:

ln -s /wherever/index_re.php/is /x/x/x/fst/var/www/html/index.php

bart
 
or use a bit of php to redirect... make index.php contain exactly this (or change the folder as appropriate):


<?php
header("Location: ./typo3/index_re.php");
?>
 
Back
Top