PDA

View Full Version : unable to find .htaccess in my file manager



yowow.com
01-09-2004, 10:15 AM
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

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

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

DirectAdmin Support
01-09-2004, 10:19 AM
Hello,

It's there, it's just a hidden file. You can type:


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

yowow.com
01-09-2004, 10:31 AM
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.


Options +FollowSymlinks
RewriteEngine on
RewriteRule ^content-cat-([1-9][0-9]*).html forums.mydomain.org/index.php?&act=Garage&CODE=12&CID=$1
php_flag register_globals off

DirectAdmin Support
01-09-2004, 11:04 AM
Hello,

Not that I know of.. but just try it with/without and use whatever works :)

John

outpernet
01-25-2004, 07:40 PM
hi. that it works? coz with a single RewriteEngine didnt for my

ClayRabbit
01-30-2004, 10:33 AM
Originally posted by DirectAdmin Support
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.

ProWebUK
01-30-2004, 04:53 PM
Originally posted by ClayRabbit
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

ClayRabbit
01-30-2004, 08:19 PM
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:

:)

ProWebUK
01-30-2004, 08:28 PM
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

DirectAdmin Support
01-31-2004, 08:37 PM
Hello,

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

I'll unhide the hidden files for the Filemanager.

John