unable to find .htaccess in my file manager

yowow.com

New member
Joined
Jan 9, 2004
Messages
2
I don't know i am just newbie to the world of web developmen tand i have account on Directadmin server.
I am trying to create .htaccess on my folder "forum" but it disappears and i can't find it on file manger in directadmin control.

I just want to write Rewriteengine code in .htaccess and put it in "forum" folder
PHP:
RewriteEngine on 
RewriteRule ^content-cat-([1-9][0-9]*).html  /index.php?act=Aracade&CODE=12&CID=$1

Rite now user in the forum can view each other their stats by typing
PHP:
http://forums.mydomain.com/index.php?act=Aracade&CODE=12&CID=20
So CID="20" is unique and assign to each user. Different user have different CID.
I want it so if somebody types http://forums.mydomain.com/20.php they would be redirected to http://forums.mydomain.com/index.php?act=Aracade&CODE=12&CID=20 so they can view stats. And I want this so everytime somebody else creates a new game report he would its url as http://forums.mydomain.com/21.php and would redirected http://forums.mydomain.com/index.php?act=A...&CODE=12&CID=21.

The program already create ID i just need so they don't have type long url. Is thier anyother way than .htaccess
sorry newbie my problem is i can't seem seem to find .htaccess in file manager.
thanks
 
Hello,

It's there, it's just a hidden file. You can type:
Code:
domain.com:2222/CMD_FILE_MANAGER/domains/domain.com/public_html/.htaccess?action=edit

to edit the file.
I'll see about unhiding hidden files (files that start with a dot)

John
 
also is their any special thing we have to add before write Rewrite condition in DirectAdmin. Because I know in ensim you write you have to put Options +FollowSysmlinks before you write RewriteEngine condition.
PHP:
Options +FollowSymlinks
RewriteEngine on 
RewriteRule ^content-cat-([1-9][0-9]*).html [url]forums.mydomain.org/index.php?&act=Garage&CODE=12&CID=[/url]$1
php_flag register_globals off
 
Last edited:
DirectAdmin Support said:
It's there, it's just a hidden file.
Still no way to enable "hidden" files listing in file manager?
What point in such "hiding" ?
CPanel have no problems with displaying .htaccess, and that's right in my opinion.
 
ClayRabbit said:
Still no way to enable "hidden" files listing in file manager?
What point in such "hiding" ?

Connect using FTP, its more than likely the same (.htaccess is hidden) just the way things like that are as default in most cases ;)

Chris
 
That's why i don't using stupid FTP-cliens that can't show ALL MY files to ME. I use smarter ones with "LIST -la" feature. Let's don't leave things in "default" state - let's make it's better, let's make it more comfortable.
Please!!!! :mad:

:)
 
I think John mentioned in a thread a day or two ago that he was going to look into allowing files starting with a . (dot)

Give it some time and if you feel the need post it in the feature request area :)

Chris
 
Hello,

A hidden file.. is a hidden file. That's why it's hidden. :)

I'll unhide the hidden files for the Filemanager.

John
 
Back
Top