LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-20-2010, 04:06 AM   #1
riteshanand40
LQ Newbie
 
Registered: Dec 2007
Posts: 14

Rep: Reputation: 0
Redirection rules for "redirect URL" identifier


Hi,

I need to redirect https://abcd.com to https://pqrs.com.
I achieved this by adding
RewriteRule ^/$ https://pqrs.com/ [R]

on the ssl.conf of abcd.com.

But when it gets
_https://abcd.com/xx/xx/xxxxxxxxxx/xxxx&redirectUrl=https://abcd.com/xx/xx/xxxxxxxxxx/xxxx
it redirects it to
_https://pqrs.com/xx/xx/xxxxxxxxxx/xxxx&redirectUrl=https://abcd.com/xx/xx/xxxxxxxxxx/xxxx

means it's not redirecting with identifier "redirectUrl=".

How to rewrite to that as well ??

Regards,
Ritesh Anand

Last edited by riteshanand40; 01-20-2010 at 04:10 AM.
 
Old 01-20-2010, 08:30 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,937

Rep: Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330Reputation: 1330
Hi,

Quote:
means it's not redirecting with identifier "redirectUrl=".

How to rewrite to that as well ??
What you mean by that? You want your URL rewritten to: https://pqrs.com/xx/xx/xxxxxxxxxx/xx...xxxxxxxxx/xxxx

If that's the case, you can try the following:
RewriteEngine on

RewriteCond %{HTTP_HOST} !^pqrs.com$
RewriteRule (.*) https://pqrs.com/$1 [R]
RewriteCond %{HTTP_HOST} ^www.semltd.com.cy$
RewriteRule ^xx/(.*)abcd.com(.*)$ /xx/$1/pqrs.com$2 [R,L]
Regards
 
  


Reply

Tags
apache, http, httpdconf, redirect


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
on url "http://localhost/" error ""The requested URL could not be retrieved " renuaseri Linux - Newbie 1 04-07-2009 12:23 AM
How to edit "/etc/udev/rules.d/40-basic-permissions.rules" file cygan Linux - Newbie 11 03-09-2009 05:22 AM
What is a "string identifier" and how do I set it Ebisu_Dave Linux - Hardware 1 07-15-2005 05:11 PM
difference between "Web server local URL" and "IPv4 address"? kpachopoulos Linux - General 2 09-17-2004 01:30 PM
Java "<identifier> expected" error. nro Programming 2 09-01-2004 12:20 AM


All times are GMT -5. The time now is 05:33 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration