minni — 2010-06-01T23:58:22-04:00 — #1
I have been given access to the FTP of a website. The URLs of this website have been rewritten. But I cannot find the .htaccess file anywhere in the code.
What could be the reason?
paul_wilkins — 2010-06-02T10:38:09-04:00 — #2
As he has done just about everything he can to enable him to see it there if it were there, there's a very good chance that the file is actually not there and needs to instead be put there. If you get my drift.
raju_gautam — 2010-06-02T05:34:20-04:00 — #3
Click on the General FTP Sites and right click on the white area then click on New->Ftp and in the pop up box you can add the ftp information and connect it. And in the same dialog box you can find all those aforesaid.
raju_gautam — 2010-06-02T02:56:04-04:00 — #4
.htaccess will not be in the server by default it is created later for rewritten purposes.
rubble — 2010-06-02T02:51:37-04:00 — #5
My server does not have a .htaccess file by default - does yours ?
ralphm — 2010-06-02T19:27:02-04:00 — #6
Sure, that's fair enough. I was just going on this original comment:
Figured it was worth a warning, anyhow.
raju_gautam — 2010-06-02T02:39:21-04:00 — #7
Which FTP uploading software you are using? There is an option with Filezilla in the menu Server->Force showing hidden files.
minni — 2010-06-02T03:28:20-04:00 — #8
I'm using CuteFTP 8.1 Professional from GlobalSCAPE.
minni — 2010-06-02T05:22:58-04:00 — #9
I just have the following in the site manager:
General FTP Sites
GlobalSCAPE Download Site
I think, here I need to have my site also. What to do?:confused:
ralphm — 2010-06-02T01:37:29-04:00 — #10
When I log in to an online file manager, there is usually an option to "show hidden files". Otherwise, files like .htaccess aren't shown. See if you can find that option. How are you accessing the server? "FTP access" is a bit vague to me. Are you accessing the site vie something like CPanel?
minni — 2010-06-02T06:18:21-04:00 — #11
Yes I have done it correctly. But cannot see the file.
Is it possible for a site to have its URLs rewritten without having .htaccess file?
Actually our site has many servers and I have been given access to one of them. Could that be a reason?
ralphm — 2010-06-02T10:14:57-04:00 — #12
As long as the purpose is to overwrite the original. If that's not the aim, this could cause trouble.
Anyway, it can be hard to create a .htaccess locally. The way I have to do it is create a file called something like htaccess.txt, add in the required content, then rename it .htacess and then upload.
raju_gautam — 2010-06-02T03:53:25-04:00 — #13
Step 1: Go to Sitemanager.
Step 2: Choose the connection and click edit.
Step 3: Make sure filters is checked.
Step 4: Press the filter button towards the bottom.
Step 5: Check [Enable remote filters (Server applied filter)]
Step 6: In the box below add -al
Step 7: Hit apply, now log in with that connection.
scallioxtx — 2010-06-02T06:02:38-04:00 — #14
There might be not yet be an .htaccess file
raju_gautam — 2010-06-02T06:03:55-04:00 — #15
Did you do the following step correctly?
Step 6: In the box below add -al
'-al' should be typed in the text box below the check box.
If still it does not work then there is no .htaccess file there in your folder. I can see the file here in my case.
minni — 2010-06-02T05:56:39-04:00 — #16
Okay, I have got my site in the site manager.
And I have rt.clicked connection, chose actions tab,clicked on Filter, checked 'Enable server side filtering', entered -a in the textbox below, clicked on OK, clicked on Connect.
I have reconnected many times, but still could not find the .htaccess file.
Note: After clicking on the filter button in the actions tab, I get the 'Filter Properties' tab where I changed the Server side filtering part. The part above this has four options out of which, only the first one, that is, 'Enable Filtering' is checked. The rest of the three are however unchecked.
paul_wilkins — 2010-06-02T07:25:21-04:00 — #17
.htaccess should be in the root directory, but it will only be there if it actually exists.
Have you confirmed that the file already exists? Create a .htaccess file locally and try to upload it.
minni — 2010-06-02T06:49:43-04:00 — #18
I have got access to a subdomain. And its the subdomain where URL rewriting has been done. Is it possible that the .htaccess file is placed outside the subdomain folder?
Note: as far as I know .htaccess file should be in the same directory.