Welcome to WebmasterWorld Guest from 3.231.226.211

Forum Moderators: Ocean10000 & phranque

Message Too Old, No Replies

build exception from https redirect without creating loop

     
8:08 pm on Mar 30, 2015 (gmt 0)

New User

joined:Mar 30, 2015
posts: 19
votes: 0


I need to take one page from this wordpress site: /singnup/ and stop it from re-directing to the https version (and if it is https redirect it to http). How would I alter the htaccess code to do this?
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


#----- START PRODUCT NAME REM -----
RewriteCond %{REQUEST_FILENAME} -f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} (.*)/wp-content/uploads/(.*)
RewriteCond %{REQUEST_FILENAME} !(.*)(\.php|\.css|\.js|\.jpg|\.gif|\.png|\.txt|\.ico|\.jpeg)$
RewriteRule (.*) /peoductname/client/website/productname client.php?productnameref=%{REQUEST_URI}&plug=wp&%{QUERY_STRING} [L]
#----- END PRODUCT NAME REM -----

</IfModule>
8:03 pm on Apr 14, 2015 (gmt 0)

Administrator

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month

joined:Aug 10, 2004
posts:11870
votes: 245


the redirect response shown is probably the result of mod_dir's DirectorySlash directive which is adding the canonical trailing slash to the requested URL.
8:31 pm on Apr 14, 2015 (gmt 0)

Senior Member from US 

WebmasterWorld Senior Member lucy24 is a WebmasterWorld Top Contributor of All Time 5+ Year Member Top Contributors Of The Month

joined:Apr 9, 2011
posts:15934
votes: 887


Is /pick-an-ebook a real, physical directory? I thought this was all about CMS pseudo-URLs that are "really" just index.php

:: idly wondering where the site gets its ebooks, and what's in it for the user, since this is a subject dear to my heart ::
9:13 pm on Apr 14, 2015 (gmt 0)

New User

joined:Mar 30, 2015
posts: 19
votes: 0


@phranque I thought that ending the exemption request with the trailing slash might have prevented that.
@lucy24
This is a Wordpress page generated with php as opposed to a physical page. I'll be retrying all the combinations of advice from here tomorrow just in case I made any typos and didn't catch them. I have to keep changing it back to the old file each time the new one throws an error as that is worse than leaving it as is. The ebooks are career guides to steer people towards the correct career course on the site for their talents,income needs, interest and budget. They are written by the site owner from information received from the course author.
This 33 message thread spans 2 pages: 33