8 More Discussions You Might Find Interesting
1. Web Development
I am trying to find a rewrite rule that can help me with the following situation.
So I am currently on a page which has a URL:
Now when I hover over a certain link, I can see that it will goto:
<a... (0 Replies)
Discussion started by: Junaid Subhani
2. Web Development
I have a domain "test.example.com" and i wanted to redirect only request like "test.example.com /index.html" to "test.example.com/index.html?NEW=1". Please note that a extra string "?NEW=1" added at the end of the URL.
So Request for http://test.example.com/index.html REDIRECTS TO... (12 Replies)
Discussion started by: Paulwintech
3. UNIX for Advanced & Expert Users
hi there, I need that when user input
because of facebook likes, and I found out that this is set up as rewrite rule in .htaccess file? how to achieve it?
thank you... :confused:
---------- Post updated at 04:47... (0 Replies)
Discussion started by: vogueestylee
4. Web Development
I hosted my site on Apache web server.
I wanted to redirect all the users request to a HTML page(maintenance page).
I used the below rewrite rule to do ths same.
RewriteRule .* /maintenance.html
The maintenance.html page contains an image.
When ever I try to... (2 Replies)
Discussion started by: BSrikanthB
5. Web Development
I am new to Apache but I have requirement as follows.
if the url is http://images/data1/templates/ it should redirect to http:/172.20.224.23/templates/
if the url doesn't have "data1/templates" (mean http://images/) it should redirect to http://images:8080/.
I tried as below
... (3 Replies)
Discussion started by: sambadamerla
6. Web Development
I have been asked to create a .htaccess redirect. I have never attempted to work with one of these files. We have a pretty vanilla LAMP setup using rhel4 apache1.3 and php4.2.3.
I was instructed to place the .htaccess file in the document root of the site and and to attempt to... (1 Reply)
Discussion started by: jaysunn
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
8. UNIX for Advanced & Expert Users
I am trying to write RewriteRule on Apache_1.3.26 to get users web page from another server.
for example if users tries to get web page on
it will get the web page from www.testdomain.com/~username without redirect and users will not be aware of any redirect... (1 Reply)
Discussion started by: hassan2
HTTP_REDIRECT(3) 1 HTTP_REDIRECT(3)
http_redirect - Issue HTTP redirect
bool http_redirect ([string $url], [array $params], [bool $session = false], [int $status])
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.
- the URL to redirect to
- associative array of query parameters
- whether to append session information
- custom response status code
Returns FALSE or exits on success with the specified redirection status code. See the INI settinghttp.force_exit for what "exits" means.
A http_redirect(3) example
http_redirect("relpath", array("name" => "value"), true, HTTP_REDIRECT_PERM);
The above example will output:
HTTP/1.1 301 Moved Permanently
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>.
the HttpResponse class if you are using PHP 5.1.0 and above.
PHP Documentation Group HTTP_REDIRECT(3)