Linux / UNIX Tech Support Forum
This is a discussion on Apache Redirect / to index.php using mod_rewrite .htaccess within the Web servers forums, part of the Mastering Servers category; How do I redirect / to index.php? Can any one guide me for this issue - I want to redirect ...
|
|||||||
| Web servers Discussion on Apache, Nginx and Lighttpd HTTP/web server and configuration issues. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
| Sponsored Links | ||
|
|
|
|||
|
How do I redirect to different cotexts with this module??
I have this: Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^4443$
RewriteRule ^(.*)$ https://127.0.0.1:4443/cotnext1 [L,R]
</IfModule>
so, if i would like to go to another context what can i do? For example, if I put context2 my Apache likes redirect to https://127.0.0.1:4443/cotnext2 |
|
|||
|
Put below as it is in ur httpd.conf
Code:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} !^4443$
RewriteRule ^(.*)$ https://127.0.0.1:4443/cotnext2 [L,R]
</IfModule>
Quote:
Last edited by nixcraft; 30-01-2010 at 07:55 AM. Reason: code tags |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| redirect to www in lighttpd | muks | Web servers | 11 | 02-06-2007 10:55 PM |
| confused with mod_rewrite | kasimani | Coding in General | 0 | 20-01-2007 01:46 PM |
| mod_rewrite in apache: rewritecond | kasimani | Web servers | 0 | 19-01-2007 11:19 AM |
| How to redirect Output | puppen | Shell scripting | 15 | 06-12-2006 08:44 PM |
| .htaccess problems | rcordeiro | Linux software | 4 | 05-07-2006 07:32 PM |