The Lounge

HELP

Submitted by A, , Thread ID: 4500

Thread Closed

RE: HELP

#18
03-06-2015, 10:38 PM
IsildurBooom Wrote:
03-06-2015, 10:20 PM
Kill Wrote:
03-06-2015, 10:16 PM
IsildurBooom Wrote:
-

Mate, redirections has nothing to do with change. Changing/Renaming something WON'T make it redirect.


thats exactly what one of the many purposes of the .htaccess is used for, to redirect to ssl from non-ssl and other way around, changing it on file causes the url to redirect :fp:

Here let me give you an example so that you can understand that what your saying makes absolutely no sense.

# (is not important if comes with or without https):

RewriteCond %{HTTP_HOST} !^www.gaming-evolved.com$ [NC]
RewriteRule ^(.*)$ https://www.gaming-evolved.com/$1 [L,R=301]

# Redirect all non-ssl to ssl.
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://www.gaming-evolved.com/$1 [R,L]

RewriteCond %{HTTP_USER_AGENT} libwww [NC,OR]
RewriteCond %{QUERY_STRING} ^(.*)=http [NC]
RewriteRule ^(.*)$ [F,L]

So changing/Renaming something WILL and canmake a URLredirect elsewhere. Need more examples?

His problem can be solved here or in his C panel if he had a problem with his own website URL, if he wanted to change from sub domain to sub directory
and I thought that was what he was asking help for.

I didn't know he had a problem with another guys URL that he used in his iframes, by the time he specifically said that you already jumped in with your false claims ..

~just to set the record straight~


Dude, You're changing the .htaccess, I'm talking about directories, plus You're using Rewrite, which is for redirectins. USE [code < tag.

Users browsing this thread: 5 Guest(s)