Apache :: How To Redirect Specific Useragent On Specific URLs

May 20, 2015

I have question: How to redirect specific useragent on specific URLs to specific URLs in .htaccess [Question]


I want to redirect 301 with conditional:

useragent: Firefox
from my url1: domain[dot]com/old-url1/
from my url2: domain[dot]com/old-url2/


to new url1: in my url1: domain[dot]com/new-url1/
to new url2: in my url1: domain[dot]com/new-url2/

I create this in my .htaccess but not work

RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} googlebot [NC]
RewriteRule ^/?this-is-url/?$ domain[dot]com [L,R,NC]

View 1 Replies


Apache :: IP And Page Specific Redirect?

Feb 19, 2014

I'm trying to get code to go in a .htaccess file that when a specific IP tries to get a specific page, he/she is redirected to another page.

I have tried many variants of this code below ...


RewriteEngine On
RewriteCond %{REMOTE_ADDR} ^12.345.678.90$
RewriteCond %{REQUEST_URI} /requested-page.html$
RewriteRule .* /redirect-to-this-page.html [R=301,L]

... and nothing works. My webserver gets hosed, and my otherwise working system gives me an error when I try to get a page from it. I am, by the way, using Mac 10.6.8, with Apache 2.2 on both server and client.

What will work??

View 6 Replies View Related

Apache :: Redirect Any Specific Page Of Site To Homepage

Feb 19, 2015

How do i redirect URL: example.com/page1 to example.com..i want to redirect any specific page of my site to homepage.

View 3 Replies View Related

Apache :: Setup Subdomain / Virtual Host To Redirect To Specific Port And Path

Mar 13, 2013

I am trying to setup a subdomain and/or virtual host to redirect to a specific port and path. I have setup my server with DDYNS through my domain name registar. Through the ddyns client I have set it to assign a subdomain of "outside.name.com" so that my server will have a easy name to get to instead of a dynamic ip address.

I have also setup on my registrars host records another subdomain of "inside.name.com" with a static IP address for internet network accessing to my server.My problem is that I have a service/program on my server that I need access to both internally and externally and this service can only be access through a port of 32400 and HTTP address of /web. (e.g. outside.name.com:32400/web or inside.name.com:32400/web)...

Is there a way that I can create a VirtualHost or Subdomain of "service.*.name.com" that redirects them to ":32400/web" of the hostname they're on? (e.g. service.outside.name.com automatically forwards or proxies--to keep it pretty--to service.outside.name.com:32400/web)

View 1 Replies View Related

Apache :: How To 301 Redirect Non-www To Www URLs

Nov 30, 2013

1.Find .htaccess file in root folder
2.Open .htaccess file
3.Delete all content
4.Type in this code(using your domain ):

<IfModule mod_rewrite.c>RewriteEngine onRewriteBase /RewriteCond %{HTTP_HOST} !^www.example.co.uk$ [NC]RewriteRule ^(.*)$ http://www.example.co.uk/$1 [L,R=301]RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]</IfModule>

View 3 Replies View Related

Apache :: HTAccess - Redirect Only One Kind Of URLs

Jan 28, 2014

This redirect redirects all subpages of a domain to another domain while not redirecting to index.php but to same page, only at another domain:

RewriteEngine On
RewriteBase /
RewriteCond %{HTTP_HOST} !^cz.hq-scenes.com$ [NC]
RewriteRule ^(.*)$ http://cz.hq-scenes.com/$1 [R=301,L]

I want to achieve that only pages like /viewtopic.php...............

will be redirected (............. means any other characters)

How to redirect all viewtopic.php pages only? How to modify it? 

View 2 Replies View Related

Apache :: Restrict Access To A Set Of IP In Specific URL

Jan 18, 2014

I have Apache 2.2 installed on my Unix Server and have a couple of Application servers running each of them having similar Document Root.

For example, The URLS will look like below


The directory folder looks like


I would like to restrict access to the above prod1 URL for a specific set of IP's. How can I achieve this.

View 1 Replies View Related

Apache :: How To Detect Where User Has Come From A Specific Website

Nov 1, 2013

configure Apache server to handle users requests using condition based on where he come from so i can redirect him . what i need if user came with from site start with xn--* redirect him to virtual host and if he came from any other link then go to another virtual host

View 2 Replies View Related

Apache :: How To Restrict Access Via IP Address For Specific Webpages

Apr 17, 2014

I'm using Concrete5 CMS to create a website. This CMS creates/manages all its webpages in a mySQL database. Thus, there is no physical folder associated with each webpage, so I can't simply create an .htaccess file and place it in the directory tree in the right sub-folder to restrict access for that sub-folder and all folders it contains.

I have one .htaccess file located at the root level (e.g top-level folder for the website).

QUESTION 1: I need place in this top-level .htaccess file to (1) restrict access to only two specific IP addresses that I can specify (blocking access to all other IP addresses), and (2) specify the URL addresses that I wish to apply this rule to?

For example, let's say my website is [URL] ....

And I want to restrict access to the [URL] ....

and my .htaccess file is located at


What code can do that?

View 1 Replies View Related

Apache :: How To Deny Access To Specific File Using HTAccess

Jun 21, 2014

I would like to deny access to .log

View 1 Replies View Related

Apache :: How To Block A Specific (Query String) URL Via HTAccess

Mar 18, 2013

I don't know how to block a specific QUERY STRING url via .htaccess file, well actually I want to block this type of url :


View 2 Replies View Related

Apache :: How To Select Specific File With Path Using HTAccess

Jun 14, 2014

I want to select a specific file by its path using .htaccess to allow access to it.

View 1 Replies View Related

Apache :: Mod Rewrite Rule To Prevent Access To Specific Page?

Jun 25, 2013

This is the mod_rewrite rule I'm trying to create. I am very new to Apache admin. Here's the issue:

I have 3 vhosts running on my HTTPD Apache 2.2.24 server: Server1, Server2, Server3. Each vhost is connected to a Weblogic application server. We are trying to prevent access to the Example.portal page on each application server.

So the URLs I'm trying to rewrite are:

- Server1.domain.com/PortalWeb/Example.portal
- Server2.domain.com/PortalWeb/Example.portal
- Server3.domain.com/PortalWeb/Example.portal

So, I would like to redirect the above URLs back to the 'root' of the website. ie: server1.domain.com. Here is my rewrite rule:

RewriteRule ^(.*)/Example.portal$ http://$1 [NC]

So, the rule is matching correctly to URLs that contain Example.portal, however the back reference from (.*) does not seem to map to $1.

View 6 Replies View Related

Apache :: Security Challenge - Rejecting Specific Requests Without Blocking IP

Jan 21, 2014

I have been trying to solve a big problem for the last 2 weeks with one of our servers.

The client using our system (web based w/ apache and php) is a contact center firm. They have about 120 operators, all connect to our websever with the same IP.

We have been suffering DoS attacks from some of these operators. This are simple, browser attacks , namely 5 or 10 operators will just hold F5 key and bombard the server with requests when they shouldnt.

We did manage to produce a php protection which will recognize the multiple requests and blacklist the user, but its "too late" because the request have already been sent and processed by the webserver.

We use the user ID in the system to control who should be blacklisted, so this is all dependent on our own authentication.

Ideally, we need something EXACTLY like mod_evasive, but for rejecting single requests instead of blocking the IP. Exemplifying : if a user calls the same url, 5 times, in a 3 second spawn, we will reject every next request for 30 seconds, but only the requests by that user.

If the webserver can make any use of it, the user id is stored in a cookie.

View 4 Replies View Related

Install Apache And Run It On Specific Mentioned Ports Between 2110 To 2250

Jan 8, 2013

installing an apache server in Linux centos and run it on any port between 2110 to 2250. I dont have much idea about the installation.

I have logged in to SU and install apache by " yum install httpd"

now how to I host on port betwwen 2110 to 2050 forwarded ports.

View 2 Replies View Related

Specific VPS

Apr 28, 2007

I'm trying to build a distributed cluster of virtual hosts spanning the U.S.

My requirements for all of them are:
1. Very well connected - Tier 1
2. Able to run Gentoo Linux
3. OpenVZ/Virtuozzo/UML

I've got the southern half of the country covered. Can anyone refer me to such a provider in the northeast, anywhere above Washington; and another in the north-central cornfield states?

View 1 Replies View Related

Is Is Possible To Let The IP To Explain To Specific Dir Via SSH

Jun 11, 2009

Is is possible to let the IP to explain to specific dir via SSH?

I am using an VPS

View 2 Replies View Related

Block A Specific ISP

Jun 12, 2008

Is there any way to block a particular ISP? Have a visitor that changes IP hourly, but the IP always resolves back to a hostname like dsl.yuns.sksk.uk .

I have CSF installed. Any way to block all visitors from dsl.yuns.sksk.uk?

View 3 Replies View Related

Php.ini In A Specific Directory

May 23, 2007

php runs as cgi on my server, this, I cannot override settings with htaccess.

If I place a php.ini in a specific directory, will this directory' s php settings be override by this php.ini?

View 2 Replies View Related

CNAME To Specific Ports

Jul 4, 2007

I'd like to know how I can use DNS to do something like make a CNAME record that points the same address to different addresses based on the port used.

mail.example.org on port 80 points to ghs.google.com
mail.example.org on port 995 points to pop.gmail.com
mail.example.org on port 587 poitns to smtp.gmail.com

View 3 Replies View Related

Specific Dedicated Server

Sep 17, 2008

I own a Limited company in the UK and we are looking for a Dedicated server to put our shoutcast services on.

So far I have the following deal:

Quad Core Q6600 (4x 2.4Ghz)
Full Root Access
5TB Bandwidth per month
100Mbit network port (fully burstable)
99.99 + VAT
Free setup
1 Month contract (30 Days Notice for Cancelation)

I am looking for a better deal than this with a reliable and well known supplier. We are a expanding company offering not only shoutcast but web hosting, web design and broadband.

The canditate host needs to be reliable and well known who can support us with no/little fees if we go over our alocated ammount.

If the host lives up to expectations there are future company prospects and business. We are looking for a 1 month contract as we have with long term intentions in mind should all be well with the host.

View 9 Replies View Related

Specific Config For A Blackberry

Jun 25, 2008

I have a customer that uses a blackberry and of course, he wants his email to be delivered in the BB, so is there any previous config or a specific port that needs to be opened, or anything else on the server?...please i have no idea about that x_X

i have a WHM/Cpanel on a Centos 5.1 and i work with exim

View 5 Replies View Related

Specific PHP Version For Vhost On Vps

Feb 7, 2008

I'm currently hosted on a friends VPS, and he has been good enough to give me his root access account details so I can mess with things if I need to. Good thing he has, too... Because I'm about to need to really mess with some things.

I've hit a brick wall, however.

The VPS is currently running php 4.3, but the CMS software that I am going to use to run my site requires PHP 5. Now, I don't want to arbitrarily update to php5 across the whole VPS, cause I dont know if thats going to knock out scripts on other vhosts. I read about the "run php5 as cgi" thing, but that doesnt really work for me, as the cms I am using has some quite in-depth url rewriting going on, and I dont want to have to make all of the php files for it end with .php5, in case that screws something up.

So, in my research, I came accross this:


The article on the apache wiki refers to a way of setting up a private server, or a VPS in this case, so that an individual vhost will use php5 as opposed to the default php4. "Great", I think... But then after loggin in to the shell and downloading the php-5.2.5 binary, I realised I dont have the first clue how I can install this, without it conflicting with the current PHP4 install, and so that it pick up on things like mySQL, and all the other libraries (gd, libxslt etc).

So, I guess my question is, does anyone know how I can accomplish this? I'm sorry if this isnt the right forum, I put it in the place that made most sense to me... Any help would be gratefully received, as I'm completely dumbfounded right now!

View 2 Replies View Related

Sub-domain Point To A Specific Ip

May 18, 2007

I have a few website's and a whm account.

I also have a few things at home that I would like to access every now and then.

I was wondering if it would be possible to setup a subdomain to point at my ip adress at home?

like if I give the home.domain.com , all traffic would be directed to my home, but domain.com would remain the hosted website?

If it is possible, how do I do it?

View 4 Replies View Related

Port Only Listens To Specific IP

Jan 26, 2007

I would like to limit a port to only listens to requests from a specific IP. How can I do that?

It's a red hat system, with apf installed.

View 5 Replies View Related

How To Delete Specific Files

Oct 10, 2007

In one folder, I have thousand of files, and I want to delete 100 specific files. Saying specific files, I mean all of them has a keyword. So, I can find out all of them by using
grep "keyword" *

but dont know how to delete all of them. Not deleting one by one.

View 2 Replies View Related

ADULT Hosting - A Few Specific Questions

Nov 13, 2008

I had a few specific questions about ADULT hosting. I've been refining an idea I had for an adult website after getting some good feedback from this site, but I had a few specific questions I still need addressed. If you think this forum is the wrong place to be asking about this, do you happen to know of any other forums that specialize in discussing adult web hosting?

My general plan is to set up a video-based adult site that charges people money (a monthly fee) to see the premium content. I have a general idea about my start-up investments, but not necessary how much each would cost, and I'm trying to put together a budget. If anyone could help me fill in some of these blanks I would really appreciate it!!

I'll need a lawyer to set up site disclaimers, contracts, etc. - I assume this will be a few hundred dollars - does this sound correct?

I need to build the site- this is where I'm not sure about costs. The general specifications are like any other adult website - users pay to register - so I would go with one of the established companies that deals with secure online credit card transactions - any ideas which ones are good? How much do they normally take?

Users then can watch the videos, rate and give feedback. Since I don't really know any programming besides HTML, I'm assuming I need to hire someone to build the site and make sure it is secure. I'm also assuming this will be the most expensive part of the investment. Can someone give me some estimates about this? Are there general templates online that I can use that will save money? Is guru.com a trusted place to hire programmers? Is this something I could do myself without spending years learning a new programming language? How DO I make the site secure, and how can I keep people from stealing my premium content and posting it on other sites? I'm obviously trying to make this as cheap as possible without sacrificing all the quality - but unfortunately I have thousands to invest and not tens of thousands (i don't know if this will be a problem or not).
Also - hosting. I was told that a popular adult video site will cost a fortune in bandwidth. If I'm charging a monthly membership fee I'm hoping that can offset the costs. Can someone recommend good, scalable adult video hosting - and give me a general idea about what kind of server I need, how much bandwidth etc. I figure since this is membership driven I can start small and then increase bandwidth depending on how many members join, so I'm always making a profit. Does that sound realistic?

Finally, can adult pay sites still make money today? Not just a couple bucks here and there, but enough so I can eventually quit my day job?

The wonderful feedback I got here before helped me to reshape my ideas, and now I'd like to begin the next steps. Thank you all very much again for ANY help you can give me - I sincerely appreciate all the generous, knowledgeable people that make this forum a pleasure to visit!

View 5 Replies View Related

Forwarding Mail To A Specific Folder?

Jun 14, 2008

Is it possible to create an email forwarder that will forward to a specific folder?

For instance, an email to "anemail@domain.com" will forward to a folder 'fold1' of "realemail@domain.com".

Alternatively, is it possible to forward but with adding additional headers, such that I can then create a filter to place emails with that header in a specific mail folder?

View 2 Replies View Related

Copyrights 2005-15 www.BigResource.com, All rights reserved