Is it possible to use .htaccss to remove the subdirectory from a url? The reason I ask it that the script I want to use requires members to be in a /users/ directory, and I would like to remove that part of the url. For instance...
can I use .htaccess to change www.thewebsite.com/users/username
to www.thewebsite.com/username
I have absolutely no need to access the /users/ directory without the username, it's just that all accounts are created in that directory.
We are wanting to move our forum from a subdomain where it lies currently to a subdirectory of the main site.
I know that this could be done via htacess, but I am wanting to make sure that we don.t lose any of the backlinks that we have coming in, or any page rankings that we have accumulated.
I have a htaccess rule, but I guess I need to know if
a) it is Correct
b) where to put it
Now please bear with me as I cant post urls, so this bit is quite difficult to get out... I have replaced the link elements with CAPPS, such as www becomes 3WS
I'm currently trying to set up a an old Project Management System we developed in house to be able to be run from a subdirectory (currently it is designed to run from the DocumentRoot). I figured I would be able to just throw together some mod_rewrite rules to be able to rewrite all requests to the subdirectory, but still haven't had any luck.
I'm pretty good with regular expressions, just not alot of experience with mod_rewrite.
Here's the idea I'm going for
Code: RewriteEngine on RewriteCond %{REQUEST_URI} !^/sub RewriteRule (.*) /sub/$1
The PMS is littered with header redirects and stuff, so it'd be nice to be able to do it all from an .htaccess file or httpd.conf (if necassary).
ive got a site which auto creates subdomains and installs a script automaticly and inserts details into a mysql db. i have had some issues recent so have loads (talking 100s) of folders that are empty which i need to remove, and to remove the details of said folder from db also. any ideas how i can do this, using plesk control panel so removing the subdomain via plesk cli may be the best way in that respect but the db is external to plesk so that would not be edited
I have setup a xen VPS some time back. I need to remove it permanently. I have used the commands virsh destroy <domainID> as well as xm destroy <domainID>. However they only performs a shutdown. I can restore it back!
I want to remove / wipe it permanently and memory consumed is given up then and reflected in the core server.
My /tmp on my cPanel hosting server is nearly full, and I was wondering if it is safe to remove all the contents in /tmp, if not, what can I delete to clear up the space?
My server has 2 drives,one is backup drive. The backup drive seem to be failing so i decide to remove it. However when i remove it,the system can not boot. ANyone got this issue?
The way Exim is setup on Cpanel/Centos is that it adds the origination IP and server IP address that the email is relayed through.
Because many RBL's flag Verizon and Comcast ISP IP's as spam sources; it causes my email relayed through my server to be rejected. Note: My server IP is not on any RBL for spam or abuse.
Is there a way to edit Exim to only use the server IP adddress that I relay through?