Click here to Skip to main content
15,908,906 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
AnswerRe: Forums in php Pin
EliottA30-Mar-09 10:32
EliottA30-Mar-09 10:32 
GeneralRe: Forums in php Pin
Malayil alex30-Mar-09 11:26
Malayil alex30-Mar-09 11:26 
GeneralRe: Forums in php Pin
Malayil alex11-Apr-09 11:15
Malayil alex11-Apr-09 11:15 
GeneralRe: Forums in php Pin
EliottA11-Apr-09 11:48
EliottA11-Apr-09 11:48 
Questionhow to install emac Pin
paul crescent30-Mar-09 2:28
paul crescent30-Mar-09 2:28 
AnswerRe: how to install emac Pin
Jimmanuel30-Mar-09 3:18
Jimmanuel30-Mar-09 3:18 
AnswerRe: how to install emac Pin
I am BATMAN31-Mar-09 7:04
I am BATMAN31-Mar-09 7:04 
Questionrewriterule for URL with Arguments problem [modified] Pin
random428-Mar-09 21:39
random428-Mar-09 21:39 
hi there,

my rewriterule with a condition is working fine as below:

http://www.sitename.com/index.php?n=text redirects to
http://www.sitename.com/pages/text with a little problem explained below.

and the page renders properly, however, there is a problem that with the redirected URL the arguments are also added to the URL. So actually in address bar it looks like-

http://www.sitename.com/pages/text?n=text

This is bugging me. The part '?n=text' should not come. Could anyone help me on this? The htaccess code is given below.

RewriteCond %{QUERY_STRING} ^n=(.*)$
RewriteRule index.php http://www.sitename.com/pages/%1 [r=301,nc]

Thanks in advance!
Aditya

Aditya Big Grin | :-D

modified on Monday, March 30, 2009 1:11 AM

AnswerRe: rewriterule for URL with Arguments problem Pin
Marc Firth29-Mar-09 23:41
Marc Firth29-Mar-09 23:41 
AnswerRe: rewriterule for URL with Arguments problem Pin
random430-Mar-09 1:37
random430-Mar-09 1:37 
Questionurl cleaning and search engines Pin
random427-Mar-09 22:55
random427-Mar-09 22:55 
Questionregarding http status code Pin
random426-Mar-09 0:56
random426-Mar-09 0:56 
AnswerRe: regarding http status code Pin
Marc Firth26-Mar-09 2:01
Marc Firth26-Mar-09 2:01 
GeneralRe: regarding http status code Pin
random426-Mar-09 3:59
random426-Mar-09 3:59 
GeneralRe: regarding http status code Pin
Marc Firth26-Mar-09 5:01
Marc Firth26-Mar-09 5:01 
GeneralRe: regarding http status code Pin
random426-Mar-09 22:41
random426-Mar-09 22:41 
GeneralRe: regarding http status code Pin
random427-Mar-09 22:50
random427-Mar-09 22:50 
GeneralRe: regarding http status code Pin
Marc Firth29-Mar-09 23:37
Marc Firth29-Mar-09 23:37 
AnswerRe: regarding http status code Pin
fly90426-Mar-09 2:45
fly90426-Mar-09 2:45 
QuestionA better explanation on pipes, parents, and childs and tips to code Pin
Endomlic22-Mar-09 15:51
Endomlic22-Mar-09 15:51 
QuestionExplain this regex. Pin
jschell22-Mar-09 9:15
jschell22-Mar-09 9:15 
AnswerRe: Explain this regex. Pin
Garth J Lancaster22-Mar-09 11:42
professionalGarth J Lancaster22-Mar-09 11:42 
GeneralRe: Explain this regex. Pin
jschell26-Mar-09 10:23
jschell26-Mar-09 10:23 
AnswerRe: Explain this regex. Pin
JimmyRopes12-May-09 12:28
professionalJimmyRopes12-May-09 12:28 
GeneralRe: Explain this regex. Pin
jschell19-May-09 8:00
jschell19-May-09 8:00 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.