Bookmarks

Yahoo Gmail Google Facebook Delicious Twitter Reddit Stumpleupon Myspace Digg

Search queries

procmail change subject header, wwwXxx not20, Wwwxxx.doks sas, linux raid resync after reboot, bind-address mysql multiple, sanibleone xxxx, ftp://192.168.100.100/, www.xxxcon, which comes first ob_start or session, wwwxxx/58/2010

Links

XODOX
Impressum

#1: htaccess url redirect problem

Posted on 2007-11-07 12:49:04 by pinky goyal

------=_Part_22002_8892764.1194436144841
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi All !

I have stuck up due my .htaccess file.

--------------- here in my .htaccess file ----- ----

Options +FollowSymLinks
RewriteEngine On

########################################
# REDIRECTION FROM NONSECURE TO SECURE #
########################################
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(confirmDetails\.php|transResponse\.php)$
https://devfoundry.com/www3/web/shop/$1 [R=301,L]

########################################
# REDIRECTION FROM SECURE TO NONSECURE #
#########################################
#RewriteCond %{SERVER_PORT} ^443$
#RewriteCond %{REQUEST_URI} !^(confirmDetails\.php|transResponse\.php)$
#RewriteRule (.*)
http://%{HTTP_HOST}%{REQUEST_URI<http://%{http_host}%{request_uri/>}
[R=301,L]

------------------------------------------------------------ -------------

i want to redirect url

http://domain.com/www3/web/shop/new.php to
https://domain.com/www3/web/shop/new.php

and url to

http://domain.com.com/www3/web/shop/pay.php to
https://domain.com/www3/web/shop/pay.php

but with this htaccess file when instead redirecting to
https://domain.com/www3/web/shop/new.php it redirects to
https://domain.com/www3/web/shop/index.php

it's reallly urgent as the deadline is very tough.

can anyone please help me out what is the problem.

lot of thanx in advance

pinky

------=_Part_22002_8892764.1194436144841
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

<div>Hi All !</div>
<div>&nbsp;</div>
<div>I have stuck up due my .htaccess file. </div>
<div>&nbsp;</div>
<div>---------------&nbsp;&nbsp;&nbsp; here in my .htaccess file&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ----- ----</div>
<div>&nbsp;</div>
<div>Options +FollowSymLinks<br>RewriteEngine On</div>
<div>
<p>########################################<br># REDIRECTION FROM NONSECURE TO SECURE #<br>########################################<br>RewriteCond %{SERVER_PORT} !^443$<br>RewriteRule ^(confirmDetails\.php|transResponse\.php)$&nbsp;
<a href="https://devfoundry.com/www3/web/shop/$1">https://devfoundry.com/www3/web/shop/$1</a> [R=301,L]</p>
<p>########################################<br># REDIRECTION FROM SECURE TO NONSECURE #<br>#########################################<br>#RewriteCond %{SERVER_PORT} ^443$<br>#RewriteCond %{REQUEST_URI} !^(confirmDetails\.php|transResponse\.php)$
<br>#RewriteRule (.*) <a href="http://%{http_host}%{request_uri/">http://%{HTTP_HOST}%{REQUEST_URI</a>} [R=301,L]</p>
<p> ------------------------------------------------------------ -------------</p>
<p>i want to redirect url</p>
<p><a href="http://domain.com/www3/web/shop/new.php">http://domain.com/www3/web/shop/new.php</a>&nbsp;to <a href="https://domain.com/www3/web/shop/new.php">https://domain.com/www3/web/shop/new.php</a></p>
<p>and url to</p>
<p><a href="http://domain.com.com/www3/web/shop/pay.php">http://domain.com.com/www3/web/shop/pay.php</a>&nbsp;to <a href="https://domain.com/www3/web/shop/pay.php">https://domain.com/www3/web/shop/pay.php</a></p>
<p>but with this htaccess file when instead redirecting to <a href="https://domain.com/www3/web/shop/new.php">https://domain.com/www3/web/shop/new.php</a> &nbsp;it&nbsp;redirects to <a href="https://domain.com/www3/web/shop/index.php">
https://domain.com/www3/web/shop/index.php</a></p>
<p>it&#39;s reallly urgent as the deadline is very tough. </p>
<p>can anyone please help me out what is the problem. </p>
<p>lot of thanx in advance</p>
<p>pinky</p>
<p>&nbsp;</p>
<p>&nbsp;</p></div>
<div>&nbsp;</div>

------=_Part_22002_8892764.1194436144841--

Report this message

#2: Re: htaccess url redirect problem

Posted on 2007-11-07 16:45:26 by Joshua Slive

On Nov 7, 2007 6:49 AM, pinky goyal <pinky.forums@gmail.com> wrote:
> Hi All !
>
> I have stuck up due my .htaccess file.
>
> --------------- here in my .htaccess file ----- ----
>
> Options +FollowSymLinks
> RewriteEngine On
>
>
> ########################################
> # REDIRECTION FROM NONSECURE TO SECURE #
> ########################################
> RewriteCond %{SERVER_PORT} !^443$
> RewriteRule ^(confirmDetails\.php|transResponse\.php)$
> https://devfoundry.com/www3/web/shop/$1 [R=301,L]
>
> ########################################
> # REDIRECTION FROM SECURE TO NONSECURE #
> #########################################
> #RewriteCond %{SERVER_PORT} ^443$
> #RewriteCond %{REQUEST_URI} !^(confirmDetails\.php|transResponse\.php)$
> #RewriteRule (.*) http://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
>
> ------------------------------------------------------------ -------------
>
> i want to redirect url
>
> http://domain.com/www3/web/shop/new.php to
> https://domain.com/www3/web/shop/new.php
>
> and url to
>
> http://domain.com.com/www3/web/shop/pay.php to
> https://domain.com/www3/web/shop/pay.php

Your examples above don't say anything about "pay.php" or "new.php".
If you gave us some consistent examples, and perhaps RewriteLog
output, we would be more likely to be able to help.

Joshua.

------------------------------------------------------------ ---------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Report this message