mod_rewrite

Status
Not open for further replies.

KSclans

New Member
Messages
197
Reaction score
0
Points
0
I have a.html and b.html
and i need a .htaccess file but i can;t create it without a name so i give it a name a.htaccess and
RewriteEngine on
RewriteRule ^a.html$ b.html

when i go to a.html it should show b.html stuff but why i still see a.html stuff in it?

well i ask before mod_rewrite is on...

and this tutorial have kind of same thing to mine

http://www.workingwith.me.uk/articles/scripting/mod_rewrite

so what the problem anyone know thanks
 

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
It needs to be called .htaccess
If it is name a.htacess it wont be read.
 

KSclans

New Member
Messages
197
Reaction score
0
Points
0
O i create it this time in my PC and ise FileZilla you know the FTP thingy and i can see that it is there.. a unknown application ... but it still showing the a.html stuff why?
 

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
It should be working now. Like Christopher said.

You needed to remove the "a" from the a.htaccess
 

KSclans

New Member
Messages
197
Reaction score
0
Points
0
I ask one of my friend and he say

Sometimes files that start with a dot in Linux are considered system files, so some FTP clients have an option to hide those files.

so is the filemanager from cpanel "hide" those files ? because i can see it with fileZilla FTP Client can someone "unhide" the files ? and x10hosting is using Linux right?
anyone can unhide them so i can edit them without download and upload it...
 

Christopher

Retired
Messages
14,659
Reaction score
8
Points
0
In the cPanel file manager, there is a button to show hidden files when you first open the file manager.

In FileZilla there is a option under Tools I believe.

We are using Linux correctly.
 

KSclans

New Member
Messages
197
Reaction score
0
Points
0
do you mean the one that ask me to go to which folder the one that in cpanel pop up window? i press the "don't ask again" so it not showing up anymore...if you not meaning that one i don't know what you saying can you take a screen shot thanks
Do i went to the index manager and see the pop up thingy for that one how i set it so it "ask" me about that again when i open file manager?
 
Last edited:

DefecTalisman

Community Advocate
Community Support
Messages
4,148
Reaction score
5
Points
38
You can try either of the following.

1) Add "&showhidden=1" to the query string(URL) when file manager is open.

2) Right click file manager and then select open in new tab, you will get file manager v3 open in a new window and in the new tab you will get file manager v2 with "&showhidden=1" already in the query string(URL).
 
Status
Not open for further replies.
Top