.htaccess Disappears From Directory ..?
May 31, 2008how can active htaccess files in side my server, every time when i upload any htaccess just disappear from the dir
View 5 Replieshow can active htaccess files in side my server, every time when i upload any htaccess just disappear from the dir
View 5 RepliesI upload a .htaccess file in FTP and it disappears, i checked with SHELL file is there but cant see in ftp ,
View 2 Replies View RelatedI am using a flash media player on one of my domains that streams music. The flash player would be like domain.com/music
The mp3 files are located in domain.com/music/mp3
The flash player just reads the title of the song and displays it in the media player.
I have used htaccess already to disable indexing, but the file name that shows on the media player is the exact name of the mp3, so I'm pretty sure people will be able to easily figure this out and start downloading our music.
What else can I add to htaccess to allow localhost access to the music, to stream with the flash player, but wont allow downloading of the mp3s.
Is it possible to lock for example the site down with basic auth and lock a subdirectory of it with a different basic auth?
Example: URL...
<LocationMatch "/*">
AuthType Basic
AuthName "Main Gate"
AuthBasicProvider file
AuthUserFile /etc/accounts
Require valid-user
</LocationMatch>
[code]....
apache configuration. I try to achieve the functionality in which the user type in browser: mysite.com/projects
View 1 Replies View RelatedI've had a page hosted on pagesgarden.com for about 4 years now, they were fairly cheap and the service was decent. Now they seem to have vanished entirely and I'm looking to transfer my domain to another host, but I used pagesgarden as the registrar also so I'm not entirely sure of what I should do to reclaim my domain name.
What is the process for transferring a domain name after the registrar vanishes?
I have a virtual dedicated server with GoDaddy. I don't know to much about managing a server, but have been doing ok for the last 5 months or so (so please make any explainations VERY simple)
I run several pretty heavy traffic sites, and the scripts on the sites send out automatic notifications to the user base that has requested such notifications (new responses, new listings etc..) and in the past few days NONE of those emails are making it through.
The mail just DISAPPEARS! I'm not getting any bounced email, the mail queue manager has only the same spam as not being allowed through, and I have restarted exim, GoDaddy also says that mail IS being sent from the server, they just can't explain why it isn't being delivered, and I'm not going over the max amount I can send daily.
I have NO clue what is going on and ANY help is REALLY appreciated!
Also, the forwarders are still working (mail sent to user@domain.com still gets successfully forwarded to the correct email address)
I've a sandbox, when i upload my package, the package disappear.
With aps build package and aps lint package I have no error and no warning, and on the panel when i import the package, simply disappears.
There is a log, a sign, I can not find the error.
I use APS 1.2
I have a situation like this:
There is a directory say, "Master" and inside, "Master" there is sub-directory, "Slave". A user who has access to, "Master" should be able to access, "Slave" automatically. However, a user who has access to, "Slave" should not have access to, "Master". Inside cPanel this type of protection is not possible.
How do I direct my httpd file to point to:
home/USER/public_html
instead of:
C:Users estetc...
I want to do this to make my test server just like the remote server.
I want to move the entire contents of a directory tree to another directory.
So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too.
Im running CENTOS latest version.
I am using a script, on which i want to enable friendly URL, below are the instructions.
Friendly URLs Settings
Apache Settings
(please add the following lines to your
.htaccess file to turn on friendly URLs)
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /hcl/friendly_url.php [L]
</IfModule>
But, issue is, i am using IIS on Windows Server.
How can i implement this?
I want a rule in .htaccess that will convert all .com addresses into .co.uk ones as I have a .com mapped to the .co.uk address for the site.
View 7 Replies View RelatedI have a vds with godaddy. I uploaded my site and then uploaded .htaccess (AddHandler server-parsed .html) Then when I go to my site in browser I get this error.
Safari can’t open the page “mydomain”. The error was: “lost network connection” (NSURLErrorDomain:-1005) Please choose Report Bug to Apple from the Safari menu, note the error number, and describe what you did before you saw this message.
The thing is, I did the exact same thing on another domain with the same htaccess file and everything works fine. SSI is enabled on both.
I'm currently having a problem with a site of mine. The problem is that trying to go to domain.com/subdirectory/ (with or without the trailing slash) gets a 404 error (even though the directory exists).
However, domain.com/subdirectory/file.php works fine.
When trying to figure out what is causing this, I remembered that someone who recently did some work on this site had to add something to the .htaccess file. Here's what they added:
RewriteCond $1 !.(php|ico|gif|jpg|png|css|js|htm|html|txt|zip|pdf)$
RewriteCond $1 !^$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?/$1 [L]
I haven't done much with .htaccess, so I really have little idea what any of the above means or does (although I know it does something important).
So I guess my question is, could this bit of code be causing my problem? And, if so, how can it be corrected without messing up what this code was put there for in the first place?
My application is on Windows plateform and using IIS as webserver.
Can I use .htaccess to secure my directory...
Code:
RewriteCond %{QUERY_STRING} ^showtopic=([^&]+)&st=0$ RewriteRule ^forum/index.php$ [url]
I get a 500 Internal Server Error when I put that in my .htaccess file. Got it from [url]
htaccess file that will redirect all requests for the domain to --
https://www.
so what I want is all traffic to be secure and use the 'www'.
If I do rm -f *.* I see that .htaccess is not deleted
If I do copy -f *.* /somedir .htaccess is not copied.
Why?
What should I do to represent all files including .htaccess?
i have a mobile download site.. now i dont want users to directly download from my site.. i mean hotlinking..
I hav a referal thing in my .htaccess
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
Now there is a flashget like software for mobiles.. i want that my users are able to download using that software but the prob is that soft doesnt sends any referal info.. so in my .htaccess i want to allow that software and i am trying this
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} ^.*FGet 1.0.*$ [NC]
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
RewriteCond %{HTTP_REFERER} !^[url](/)?.*$ [NC]
RewriteRule .*.(zip|avi)$ - [F,NC]
where FGet 1.0 is the HTTP_USER_AGENT send by the software, but this doesnt works.. can plz give me the right code for it
I'm have a bit of a mare getting some htaccess to work.
Here's my code:
Code:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-F
RewriteRule ^([-_!*$@~:.a-zA-Z0-9]+)$ [url]
The above works on a CPanel server but i've just moved the site to a fedora core 6, with standard httpd no control panel.
This is an entry from my log files:
PHP Code:
X.X.X.X [28/Sep/2007:11:51:34 +0100] "GET /my_profile.php?username=my_profile.php HTTP/1.1" 302 349 "-" "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30)"
For some reason it appends the my_profile.php to the end of the url, and it does it to any file in the same directory and just keeps going around in a loop, why would it do this?
Apache redirect. I would like to point all the old site URLs to my site homepage e.g.
[url]should point to [url]
or better,
[url]should point to [url]
tell me the redirect code i need to add to my .htaccess file to make this work?
What are the most common UAs? What I want to do is whitelist all the legit UAs and block the rest.
View 0 Replies View RelatedI'm trying to redirect all people who go to [url]to [url]
I've got this but it doesn't do anything: (and I did verify that the .htaccess works, as
I added garbage text and tested and got an error).
Code:
Options +Indexes
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.mydomain.com/directory/$ [NC]
RewriteRule ^(.*)$ [url]
I have just found out my server only supports .htaccess with ISAPI_Rewrite. Not quite sure how to accomplish this as in the past I just used normal .htaccess code. I just want to do a simple redirect so could anyone shed a bit of light on what I now need to pop in the file.
View 8 Replies View RelatedI'm transferring my website from Linux to Windows Server 2008 and I'd like to use IIS.
The problem is I have pretty complicated .htaccess file with complicated URL rewrite rules and redirections in it.
MarbleHost.com provides .htaccess Generator in their shared web hosting plans. Can you tell me what we use it for?
View 8 Replies View RelatedI just hired my first dedicated server and I don't get why but it is like if it is not reading my htaccess files for mod_rewrite.
View 13 Replies View RelatedI'm trying to learn htaccess, but I'm having issues wrapping my head around this. I need to learn by example. Have several types of 301 permanent redirects that are needed.
Want to redirect a single page to a new page
OLD - [url]
NEW - [url]
Want to redirect a folder, AND any pages in it (preferably without naming EACH page), to a new folder's index
OLD - [url]
NEW - [url]
Want to redirect a subdomain to the primary domain
OLD - [url]
NEW - [url]
Want to redirect a folder, AND any pages in it, to a new subdomain
OLD - [url]
NEW - [url]
Using ISAPI_Rewrite 3 on 2003/IIS6, which uses htaccess commands.
Could anybody here show me what they would do in these scenarios?
I've read and read, and tried and tried, but it never seems to work out correctly. It either fails to redirect, or it redirects too much (some "open" type commands with a lot of variables will pick up the keyword -- for example, "students" -- so students.domain.com AND domain.com/students AND domain.com/program/students.html would all redirect, even though I only wanted the subdomain version, or the page version, to redirect, and not the others!).
I know how to do a redirect to a new URL using a .htaccess file if I am pointing to a different server, however both domain.com and domain.com.cn are pointing to the same server, I just am wondering what I would add into my .htaccess file to get it to redirect from domain.com.cn to domain.com?
View 4 Replies View Related