08-9-2014, 05:37 AM | #1 |
Custom User Title
|
I am in trouble with some nasty url redirection
Hey guys, i tried to solve this myself but i'm stuck and need help.
There's a site located at playcenter.playnetservice.it which is a subdomain of playnetservice.it created through the hosting cpanel. If you enter playcenter.it, it redirects you to the correct domain (there are specific rules about that in the htaccess files) which is playcenter.playnetservice.it but i want to mask this redirect and have the URL bar only display playcenter.it I know it's possible but i feel i am going in circles. Does anyone know about this? my current htaccess looks like this: Code:
RewriteCond %{HTTP_HOST} ^playcenter\.it$ [OR] RewriteCond %{HTTP_HOST} ^www\.playcenter\.it$ RewriteRule ^/?$ "http\:\/\/playcenter\.playnetservice\.it\/" [R=301,L]
__________________
Last edited by Mollocephalus; 08-9-2014 at 05:38 AM.. |
08-9-2014, 05:45 AM | #2 |
Signature Extraordinare~~
Song Submission & Events Manager
|
Re: I am in trouble with some nasty url redirection
For a second I thought someone got something else other than a conduit search browser hijack. Glad that's not the case.
Also lol I have no idea. edit: is there no technologically savvy person online right now? wow. Last edited by gold stinger; 08-9-2014 at 08:05 AM.. |
08-15-2014, 11:48 PM | #3 |
Custom User Title
|
Re: I am in trouble with some nasty url redirection
Can i consider no one here is able to solve this kind of problem?
__________________
|
08-16-2014, 03:30 AM | #4 |
Signature Extraordinare~~
Song Submission & Events Manager
|
Re: I am in trouble with some nasty url redirection
nope, everyone is too dumb to comprehend coding.
|
08-16-2014, 07:47 AM | #5 |
D6 Challeneged
Join Date: Aug 2012
Age: 31
Posts: 1,267
|
Re: I am in trouble with some nasty url redirection
|
08-16-2014, 10:39 AM | #6 |
Digital Dancing!
Join Date: Feb 2006
Location: 80 billion club, NE
Age: 31
Posts: 12,980
|
Re: I am in trouble with some nasty url redirection
remove the R=301 flag so that it's just [L] since the R tag tells mod_rewrite that you want to redirect externally, so basically asking the browser to make a new request, which changes the address bar. Since you're only redirecting internally, you shouldn't need the R flag.
__________________
Last edited by rushyrulz; 08-16-2014 at 10:42 AM.. |
08-20-2014, 02:10 AM | #7 |
Custom User Title
|
Re: I am in trouble with some nasty url redirection
EDIT: it has been fixed. The hosting provider did have options to do what i wanted. it just wasn't very practical at all. Thanks for your help!
__________________
Last edited by Mollocephalus; 08-26-2014 at 02:38 PM.. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|