Redirect Whole Folder In CPanel To A File
Jul 9, 2008
a way to set up a redirect in cPanel so that every file within a particular folder is redirected to a specific file.
For example: I want to redirect every file in domain.com/test to domain.com/redirectedFile.htm
Is this possible in cPanel?
If not, is there another way to do this?
View 2 Replies
ADVERTISEMENT
Feb 22, 2007
I have a question regarding folder redirection. For example if i have a url like
www.mydomain.com/forum
if i rename the folder forum to board and i want that if user put address www.mydomain.com/forum/showthread.php?t=585657 then it will automatically redirect to www.mydomain.com/board/showthread.php?t=585657 is that possible i want that every topic or file redirect to new folder?
View 3 Replies
View Related
Mar 3, 2008
I'm hosting a site for a organization but using our own servers. Problem is that they did not want to use a subdomain link to our server but instead wants the server to appear as www(dot)abcdefg(dot)com/ourserver/
can this be done.
Currently my options are :
1) Force them to use sub domains and redirect
2) HTML "Frame" their website to ours (ungraceful method)
3) Truely Redirect it to our server by some means...
View 8 Replies
View Related
Jan 13, 2007
We had a subdomain that was [url]and we have now decided we would like to use [url]
I have setup the gallery on the new server as [url]
I would like to be able to if someone had a link [url]for it to redirect them too [url]
View 3 Replies
View Related
Nov 28, 2006
I searched URL....but I still could not get this to work.I need a redirect to a certain folder when people visit the root directory of my site.
View 7 Replies
View Related
Aug 3, 2007
Here is the situation.
I would like for people to go to [url] and be prompted for a login (.htaccess). Then depending on the login, redirect to the appropriate folder.
Example.
User 1 logs in as example1 with password xxxxx. It redirects them to domain.com/whatever/example1 with the successful login.
User 2 logs in as example2 with password xxxxx. It redirects them to
domain.com/whatever/example2 with the successful login.
Is this even possible with .htaccess? If not, is there any way to do this via a php script or anything?
View 1 Replies
View Related
Oct 8, 2008
i'm trying to edit my my.cnf file,but unfortunately don't find this file in
/etc/ folder.
It was moved from here, as i find my.cnf.moved with such content
[mysqld]
local-infile=0
and there is backup file for my.cnf.backup in this folder, but when i rename it
to my.cnf some of my scripts don't work well.
So it mean, that real configuration of my.cnf is fine, just need to increase
one value.
View 1 Replies
View Related
Oct 28, 2007
Server:
Centos 4.5/cPanel v11/php5 - SSH
Maybe someone can set me straight on this. I have always been under the impression, that under normal circumstances, permissions should usually be as follows:
userdir - 711
public_html - 750
folders - 755
files - 644
I am doing some work on a server and when I create a new folder (using WinSCP) it defaults the folder permissions to 775 and file permissions to 664. Besides causing possible problems with the applications I'm installing, isn't this a bit of a security risk?
Also, if I upload a tar and untar on the server it sets the same 775/664 permissions.
View 3 Replies
View Related
Nov 26, 2006
I'm trying to redirect from a filename that contains spaces using .htaccess
for example, I want to redirect /test 2.html to http://example.com
I've tried:
ReDirect /test 2.html http://example.com
ReDirect /test 2.html http://example.com
ReDirect /"test 2".html http://example.com
ReDirect /'test 2'.html http://example.com
ReDirect /test%202.html http://example.com
ReDirect /"test 2.html" http://example.com
ReDirect /'test 2.html' http://example.com
And a few others. I can't seem to get the syntax right, and always end up getting an internal server error message. Anyone have any ideas?
View 6 Replies
View Related
Jul 16, 2013
We are redoing our website and we have removed / renamed a few old pages. I was wondering if I can do 301 redirect for removed / renamed pages without having to actually create them? To explain with an example:
On old website : www.domain.com/mypage.php
On new website: www.domain.com/mynewpage.php
I created a 301 redirect in .htaccess redirecting mypage.php to www.domain.com/mynewpage.php without physically creating "mypage.php" file. When I access "www.domain.com/mypage.php", I get a 404 page not found error. When I create a blank "mypage.php", the redirection works fine.
Is it possible to do a 301-redirect without having to create old files ?
View 4 Replies
View Related
Jan 27, 2013
So, I would like my htaccess file to check if a file exists and if it doesn't then redirect to another file. How would I go about doing this?
View 5 Replies
View Related
Feb 22, 2007
I have a file on my server called admin.php and a folder called "admin" I only want 2 IP addresses to be allowed access to those files.
can this be done in .htaccess? if so can someone give me an example?
I have spent ages trying to work it out myself but I'm a bit of a noob
thanks in advance
what should .htaccess files be chmod'ed to ideally?
View 2 Replies
View Related
Jan 15, 2007
to install LightHTTPD but I want to know how can I protect folders like using on apache i can put a .htaccess and it prompts me to enter pass etc...
How do I do that in lightHTTPd?
How do I disallow certian file extensions from public eyes like on my current server I disabled viewing of .datab files and when someone types in the location of mydb.datab they get a forbidden message.
how do i do that in lighthttpd?
View 2 Replies
View Related
Feb 13, 2008
I deleted my tmp folder and mounted a secure tmp file via fstab
e.g.
/path/to/tmp /tmp ext2 loop,noexec,nosuid,rw 0 0
the temp files are now written to a secure tmp file, however some processes still need that folder for example cpanel.
"Failed to create directory /tmp/cpanel.TMP.xxxxx"
Should I ignore that and similar error messages or what am I supposed to do?
View 8 Replies
View Related
Sep 14, 2013
Recently I moved my WordPress website to another server, After moving my site I see that my all files permission set to 664, for that I getting many error, now I want change all files permission 644, but problem is I have many subdomain with this site, is there any way to make change all files permission to 644 with SSH or any other way?
View 1 Replies
View Related
Nov 15, 2013
I have a problem where every folder I ftp onto the server gets given a 700 permission and every file gets a Zero permission. Most of the sites I am adding to this server will be WordPress sites and most of the folders I want to have a permission of 755 and for the files a permission of 644 so my question is how do I change the settings so that any new files ftp'd onto the server get the permission 755 and files get the permission of 644 ?
View 2 Replies
View Related
Jul 14, 2014
I got this Problem after install a New Plesk Server.
Current: CentOS 6.5, Plesk 11.5.30, PHP 5.3.3 (Default install), PHP as FastCGI (I Tried also with Plesk 12.x).
What I did: in IP Tables i set al Ports for Plesk; I set in /etc/proftpd.conf the Ports "PassivePorts 65000 65200"
Problem: Each file ore folder created by an php Application i cant see ore override by ftp.
Example: I Upload a new installation of Joomla 2.5 (CMS) by ftp with a User created by plesk. Then I start the Installation by using the Webbrowser. In this process Joomla change some files and create also an configuration.php. All done by php Scripts. Now I check the configuration.php on the FTP -> Cant see it. -> I check by SSH and the file exists. If I Check the Permissions it seams, that all file have same permissions, owner and group.
-> Configuration.php can not see by ftp ore be overwritten
-> htaccess.txt I see by ftp and i can manage
->> Permissions seams to be the same "?"!"
View 1 Replies
View Related
Mar 17, 2015
Ok, new to Plesk, trying to move from ispconfig. So I have Plesk 12 running on Centos 6 64bit in a VPS. I figured out how to upgrade PHP and now I have installed my first website. The website is joomla based but I am getting the below error when installing components:
Warning
Copy failed.
JInstaller: :Install: Failed to copy file /var/www/vhosts/virtual-sim-racing.com/httpdocs/home/tmp/install_55081e65af5fe/pkg_kunena.xml to /var/www/vhosts/virtual-sim-racing.com/httpdocs/home/administrator/manifests/packages/pkg_kunena.xml
Package Install: Could not copy setup file.
This suggest to me a permissions issue - but what to do with it. I have checked all of the relevant Joomla folder permissions and they are all showing as writeable, so it looks like something outside of that?
I don't want to have to stick with ispconfig much longer ...
View 7 Replies
View Related
May 7, 2007
I thought I knew enough about my .htaccess stuff to do this, but I can't seem to work it out. What I want to do is if a user visits domain.com/folder, we check to see if the folder exists. If so, show as normal (IE domain.com/support)
If a user visits domain.com/dynamicusername (dynamicusername is not a physical folder), redirect to dynamicusername.domain.com
View 3 Replies
View Related
Jun 16, 2008
i have a server with centos,
i need to edit the hidden file .htaccess from the file management tool of cpanel,
but the hidden files not shown,
ow can i modify the setting and let the files shown in the file management tool of cpanel?
View 6 Replies
View Related
Sep 19, 2008
Is it possible to use the MX feature in Cpanel to redirect web/mail traffic to a different server based on IP? As a way to get around the DNS resolution problem when changing nameservers on the domain?
View 3 Replies
View Related
Aug 2, 2007
was wondering whether you thought it would be a good idea to flush my /tmp folder on a daily basis (rm -rf /tmp/*).
Do you think this would cause more issues than solutions? Seems my server could have potentially had some scripts in the /tmp that brought it down this morning...
View 3 Replies
View Related
Aug 12, 2008
Is it possible to redirect parked domains in cPanel to a different URL? I want to redirect each domain to a different url. Can this be done via cPanel or .htaccess?
View 1 Replies
View Related