10 More Discussions You Might Find Interesting
1. Web Development
hi
what is the meaning of the below code, please explain in details
RewriteRule '^/(.*)$1$2/?' (1 Reply)
Discussion started by: raghur77
1 Replies
2. Web Development
I am a total newbie to Apache. I need to do this only for this weekend during an upgrade from old system to new system
We have different URLs http://domain.name/xxx (xxx varies to any length and words - it can be /home, /login, /home/daily, /daily/report, etc).
How do i redirect all those to... (0 Replies)
Discussion started by: GosarJunk
0 Replies
3. Shell Programming and Scripting
Hi,
I am currently redirecting all mobile devices to my mobile site in apache. I need to exempt the following file types from redirecting even if the request is made from a mobile device.
*.css
*.jpg
*.jpeg
*.gif
*.js
Does anyone know where and what I need to do for this? Thanks in... (1 Reply)
Discussion started by: kmaq7621
1 Replies
4. Web Development
i read thru a few article how to do it, but i could not get it to work the way i want it.
vi ../httpd.conf
Redirect permanent /dev https://servername/portal/
when i type servername, works fine.
my goal is to type dev, and it takes me to https://servername/portal/ (4 Replies)
Discussion started by: lawsongeek
4 Replies
5. Web Development
Hi,
I'm running both mail (webmail port = 8080) and web (http = 80) on same box. i am able to redirect as below without any problem.
From: http://mail.abc.com
To: http://www.abc.com:8080
I did the above with a simple virtualhost and redirect directive.
But my requirement is to have same... (1 Reply)
Discussion started by: reddyr
1 Replies
6. Web Development
Hi guys, I've been trying to figure this out all day however havent managed to as of yet.
I have a server called netmon (network monitoring) which runs a multitude of programs to monitor the network.
I also have a cname pointing to netmon called smokeping.
At the moment to access smokeping... (0 Replies)
Discussion started by: JayC89
0 Replies
7. Web Development
Hi,
everything is working perfectly. I have one more question.
Is it possible to specify a file instead of a directory in DocumentRoot ? (see phpinfo.php in the example).
Is it a correct procedure ?
<VirtualHost www.patrick.dev:80>
ServerAdmin patrick.diviacco@gmail.com
... (1 Reply)
Discussion started by: aneuryzma
1 Replies
8. Web Development
Hello.
I have scenario where a Client send request to Server1.
Server1 send request to Server2.
Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client.
Trying to use APACHE proxy...
Anyone can help?
What to download / configure / ...?
Thank you for your... (2 Replies)
Discussion started by: ampo
2 Replies
9. Cybersecurity
Hello.
I have scenario where a Client send request to Server1.
Server1 send request to Server2.
Request are xmlHTTPRequest - need to get data (XML) from Server2 back to client.
Trying to use APACHE proxy...
Anyone can help?
What to download / configure / ...?
Thank you for your help. (1 Reply)
Discussion started by: ampo
1 Replies
10. HP-UX
I have two servers running apache server, namely server A and B.
All users access server A, but for some application, I would like to redirect the request to server B.
I have set apache redirect in server A apache config file.
Redirect /application http://serverB/application
Now, the flow... (2 Replies)
Discussion started by: alfredo
2 Replies
HTTP_REDIRECT(3) 1 HTTP_REDIRECT(3)
http_redirect - Issue HTTP redirect
SYNOPSIS
bool http_redirect ([string $url], [array $params], [bool $session = false], [int $status])
DESCRIPTION
Redirect to the given url.
The supplied $url will be expanded with http_build_url(3), the $params array will be treated with http_build_str(3) and the session iden-
tification will be appended if $session is true. The HTTP response code will be set according to $status. You can use one of the redirect
constants for convenience. Please see RFC 2616 for which redirect response code to use in which situation. By default PHP will decide which
response status fits best.
To be RFC compliant, "Redirecting to <a>URL</a>." will be displayed, if the client doesn't redirect immediately, and the request method
was another one than HEAD.
A log entry will be written to the redirect log, if the INI settinghttp.log.redirect is set and the redirect attempt was successful.
PARAMETERS
o $url
- the URL to redirect to
o $params
- associative array of query parameters
o $session
- whether to append session information
o $status
- custom response status code
RETURN VALUES
Returns FALSE or exits on success with the specified redirection status code. See the INI settinghttp.force_exit for what "exits" means.
EXAMPLES
Example #1
A http_redirect(3) example
<?php
http_redirect("relpath", array("name" => "value"), true, HTTP_REDIRECT_PERM);
?>
The above example will output:
HTTP/1.1 301 Moved Permanently
X-Powered-By: PHP/5.2.2
Content-Type: text/html
Location: http://www.example.com/curdir/relpath?name=value&PHPSESSID=abc
Redirecting to <a href="http://www.example.com/curdir/relpath?name=value&PHPSESSID=abc">http://www.example.com/curdir/relpath?name=value&PHPSESSID=abc</a>.
SEE ALSO
the HttpResponse class if you are using PHP 5.1.0 and above.
PHP Documentation Group HTTP_REDIRECT(3)