I am looking for a way to put a rewrite condition into my configuration where I can poll an external web page and based on the http status code, allow the rewrite or not.
I am doing this in order to set a maintenance status on two different proxy servers, one is apache the other is a big-ip. I already have the maintenance pages and control setup on the big-ip, but I need a way to poll a url and pull a specific http status code served up by the big-ip.
I am new to wordpress; I want a url rewrite rule for my htaccess. I want when a user visits www.domain.com/services/manu/ the url on the address bar should be www.domain.com/services/. I don't want a permanent redirect.
Is there anyway to emulate the functionality of the ErrorDocument using rewrite rules, redirects, rewrite conds or other methods.
I'm trying to create a 404 page that can use dynamic variables (not allowed in ErrorDocument), that serves a custom 404 page and also logs a 404 in the HTTP status code in the logs.
I can achieve one or the other but not both as the ErrorDocument does.
I have the following RewriteRule directive in my htaccess file on my localhost:-
Code: RewriteRule ^([a-z-]+)/?$ test.aspx/app.nav/params.class.com${meta:$1}/whatever${meta:$1} The rewrite rule works perfectly, since the revised URL is still preserved when after it is executed; I presume this is since my old URL is relative, and it's performing an internal rewrite.
However, when I make my old URL absolute (adding an external address to it), whenever I execute my new URL, I'm redirected to the external sites URL (which includes the same URL parameters as my internal 'test.aspx' page), like below:-
Code: RewriteRule ^([a-z-]+)/?$ http://www.example.com/test.aspx/app.nav/params.class.com${meta:$1}/whatever${meta:$1} Purely for demo purposes, upon execution, I'd like my new URL to be preserved in the address bar whilst, I'm redirected to the external site.
Is this possible to do - something like forcing the behaviour of an internal rewrite?
EDIT: I've done some investigating and people with similar problems have suggested using the Passthrough handler - although I'm slightly unclear as to what this does exactly, I gave it a go (adding '[PT]') at the end of RewriteRule, but unfortunately this didn't make any difference.
We have a server that is (unfortunately) running Windows. I'd like to change the strings from something like index.php?p=home to /home. I know how to do this on an Apache server, but I'm completely clueless for a Windows server running IIS.
I finally bought a VPS after not being able to pay for a dedicated server so I bought one from VPSbyte.com as they came highly recomended $39.95 server with Cpanel not the cheapest I gathered but I wanted reliable servers
now I moved my forum over to the server all was ok after I got the massive database sent over but when I tried to view a thread or category I could not it came back with No Valid input or something like that
I went into admin and disabled zoints SEO mod and the forum works fine BTW its a VB forum.
would it be due to mod rewrite that the forum does not work with zoints? and is it possible to get it to work?
we have a cpanel server that has been running our website and emails. We have just obtained another dedicated server. I would like to keep our first server running our website and move all of our email for the domain to the new server. The second server has the same setup and runs cpanel as well. Can anyone point me in the right direction to achieve this?
On a CPanel server, I have one account where mx records are configured to route all the e-mails to external mail server. Everything works great, except when the e-mail is from another account on the same CPanel server, it doesn't reach external mail server, I think it goes to e-mail box on CPanel server.
Is there a way to fix it? (How to send e-mails from the CPanel server to external mail server?)
I have a web server and two DB servers. I use a third party DNS solutions. I would like to move mail to a totally separate server.
My question is... How exactly would I do this? I assume that I install something like exim and then use the PHP mail function like normal except configuring it to send via the new servers IP address.
Then I suppose I would create a record for mail.mydomain.com pointing to the new server and then create an mx record to use mail.mydomain when receiving mail from mydomain.com.
Im setting up a few servers under one domain name and am in need of a external DNS service provider. Does anyone have any suggestions on who I should go with?
We require a server with 10+ IP addresses (Each one with a separate OS and external IP Address, i.e myip.dk)
This is to be used as an added security level for our employees logging into our system from outside the office. Our system monitors the IP Address and we need to restrict access to certain items depending on the IP. We basically would like to set up multiple VPS on one server.
Can you confirm how this would work?I know we can buy a Windows VPS for around £15, but we need multiple of these (10-20)and figure our own server might be the way forward.
I have a client who has hosting with another company for their website and they have their own internal MS Exchange server for email...
In order to switch the hosting to one of my servers they just need to alter the A record for the website to my webserver's IP address at the registrar - correct?
They also want to start sending a "mailshot" to existing clients - what is the best way of doing this? I have no experiance of Exchange Server so I am thinking of running something simple like phpList on the webserver but how can this be configured to use their Exchange Server?
I am thinking that if I just setup phplist as normal then the emails it sends would bounce, is the trick to setup phplist differently or to change the servers DNS settings for that domain?
I have a local web server that I want to make available outside of my local network of two computers. I configured NAT at my router, configured the firewall. I Typed the external IP and got nothing, while I still was able to access my web server by typing "localhost", I tried both IIS and Apache, but what is interesting is that fact that the other people can access my web server via that external IP, I just cannot access it from my local network.
I have a freshly installed 'Microsoft Windows Server 2008 R2 Service Pack 1' VPS with Plesk 11.5.30.When installing certain applications (for example, Dolphin, Elgg), it halts with the following error message: Requirements: Apache module - The app requires the 'rewrite' web server module
When I check in Windows IIS Manager under Modules, I see RewriteModule is installed as a native module.When checking the KB about this issue: URL..it says to enable the rewrite module by ticking it in the 'Configure native modules' box.However, that module is not even listed there, even though it clearly is listed in the main module overview as a native module.
Also, in Plesk > Tools & Settings > Server Management > Panel Components, URL rewrite is also listed: URL Rewrite [Active] IIS URL Rewrite Module 2 7.2.2
I have one dedicated server that hosts a PHP/MySQL highly dynamic site. In peak periods my site is starting to get high load (still very manageable but enough to warrant thinking about the future). My site is mostly images - photo gallery type stuff.
I've thought about using Amazon WS to host images from my site but it works out too expensive as do other similar Content Delivery options.
From what I can tell, when the load is high, mysql CPU usage isn't too bad, it hovers around 20% and peaks to 60% every 20 seconds or so, so my assumption is that the load is partly from apache (I see lots of apache processes in peak periods).
I am considering just get a cheap VPS hosted elsewhere that will be used as a static image/file server to release stress from my main server- How much stress would this help release?- Any other suggestions on solutions?
- I would have to do quite a bit of work to my application to ensure images are posted to this server and not my main server which seems a pain (or cron these tasks).
I get the following message if i try to migrate a domain from a Windows Plesk (9.5.5) to PPA:
[2014-04-22 11:25:39] [ERROR] check-infrastructure/mydomain.com| The mssql database DATABASENAME from SourceSQL:0 will not be copied to external DB server at x.x.x.x:1433 - this is not implemented.
But this should have been fixed in MU#4 as mentioned in [URL] ....:
[-] Users could not migrate to PPA 11.5 if PPA used an external Microsoft SQL Server (which was added through Infrastructure > Database Servers). (PPA-771)Click to expand...
The Goal:Have Plesk Accounts on it's server be able to sync to an external SmarterMail server, rather than installing SmarterMail on that same serve (which seems to be available natively).