Sponsored Content
Full Discussion: Rewrite Rule looping error
Top Forums Web Development Rewrite Rule looping error Post 302697635 by Paulwintech on Friday 7th of September 2012 06:33:46 AM
Old 09-07-2012
Rewrite Rule looping error

Hi,

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 http://test.example.com/index.html?NEW=1

Below rule endup with looping error.

Rules
RewriteEngine on
RewriteCond %{HTTP_HOST} ^test\.example\.com$
RewriteRule ^index.html$ /index.html?NEW=1 [L]

Please guide me on rewrite rule. Thanks in advance

Regards
Wintech

Last edited by Paulwintech; 09-14-2012 at 04:11 PM..
 

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

grep help, how do i rewrite this

Thanks , franklin you method worked, i knew i had to use a while loop and getline in there just didnt know the proper order :) Hi everyone, im trying to make the following command line shorter by introducing a script that join up all the grep commands ./new1a < numbers.txt | grep -i -v '^a '... (5 Replies)
Discussion started by: weezybaby
5 Replies

2. Web Development

.htaccess Rewrite Rule

Hello All, 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
1 Replies

3. Web Development

Need help with rewrite rule

Hi, 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. RewriteEngine on RewriteRule .* /maintenance.html The maintenance.html page contains an image. When ever I try to... (2 Replies)
Discussion started by: BSrikanthB
2 Replies

4. UNIX for Advanced & Expert Users

Apache rewrite rule help needed

Hi All, I want to redirect from http://localhost/abc/xyz/def?cc=dk&lc=da to http://localhost/abc/mnc/pdf?cc=dk&lc=da. Please suggest a rewrite rule. (0 Replies)
Discussion started by: jagnikam
0 Replies

5. Shell Programming and Scripting

multiple looping with case and funtion showing error, Please help

Hello All, I have code as follows :- while true do {opening a case1 statement} 1) {opening another case2 statement} {closing case 2} 2) Showing error for "2)" as Syntax error at line 59 : `)' is not expected. *) {closing case 1} ... (5 Replies)
Discussion started by: Renjesh
5 Replies

6. UNIX for Advanced & Expert Users

[SOLVED] htaccess rewrite rule help!

hi there, I need that when user input mysite.com/ponuka/AAA2869 it shows mysite.com/ukaz.php?ponuka=AAA2869 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
0 Replies

7. Web Development

ReWrite rule giving a hard time.

Hi all, 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: http://www.test.mobile.com/#!/shop/phones/max-plus/features/ Now when I hover over a certain link, I can see that it will goto: <a... (0 Replies)
Discussion started by: Junaid Subhani
0 Replies

8. UNIX for Beginners Questions & Answers

Error in looping through files

Hi, I've got a folder with several files I'd like to manipulate. The file names are all ending in .txt and I'd like to loop through their names for manipulation. This is the script I've got so far: for i in 'ls *.gtc.txt|cut -d "." -f1'; do echo${i}; done It should be easy enough, but... (2 Replies)
Discussion started by: zajtat
2 Replies
TASKS(3)						User Contributed Perl Documentation						  TASKS(3)

NAME
TASKS - Want to help? These things need doing... Increase test coverage More tests need to be added to test the codes that not urrently being tested. It's pretty poor right now: http://pjcj.sytes.net/cover/latest/DBI-1.52/coverage.html Start with improving the subroutine coverage http://pjcj.sytes.net/cover/latest/DBI-1.52/blib-lib-DBI-pm--subroutine.html Test the proxy The current t/80proxy.t is isolated from the rest of the test suite so actually tests very little, and what it does test is duplicating other tests. Ideally the proxy should be tested in the same way as DBI::PurePerl. In other words, by creating wrappers test files for each test file that set $ENV{DBI_AUTOPROXY} and run the original test. They'll also need to start and stop a proxy server. Fixing bugs The official bug list is here: http://rt.cpan.org/NoAuth/Bugs.html?Dist=DBI Naturally I'll offer direction and guidance on any you want to tackle. I've also got a few that could be entered into rt.cpan.org. Others General: Protect trace_msg from SIGPIPE? prepare(...,{ Err=>my $isolated_err, ...}) Add trace module that just records the last N trace messages into an array and prepends them to any error message to provide context for the error. Document DBI_PROFILE_FLOCK and LockFile attrib in DBI::ProfileData and DBI::ProfileDumper Performance: Move _new_sth to DBI::db::_new_sth (leave alias) and implement in C Or call _new_child and move to DBI::common? Implement FETCH_many() in C Add high-res dbi_time for windows - via Time::HiRes glob replace dbi_time()? perl v5.12.1 2009-06-08 TASKS(3)
All times are GMT -4. The time now is 04:32 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy