ClioSport.net

Register a free account today to become a member!
Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

  • When you purchase through links on our site, we may earn an affiliate commission. Read more here.

HTACCESS Redirect giving me jip!



So I want to redirect a domain and a sub domain to 2 seperate facebook pages. The main domain:

www.belfastcarscene.co.uk I want to redirect to https://www.facebook.com/belfastcarsceneni

Somehow I have managed to make it do that no problem. Now the second domain:

www.belfastcarscene.co.uk/cruise-for-cancer-2013 I want to redirect to https://www.facebook.com/events/318399681587754

When it tries to redirect it removes the colon infront of https rendering the link useless what is causing it to do that? Here is the .HTACCESS file that I have in the /cruise-for-cancer-2013 root folder.

Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule (.*) https://www.facebook.com/events/318399681587754/$1 [R=301,L]

What is going on?

Cheers

Nick
 
  Bus w**ker
Code:
Redirect 301 /cruise-for-cancer-2013 https://www.facebook.com/events/318399681587754

Maybe? I'm on my phone so that might be totally wrong.
 
  Bus w**ker
I care not. I'm preempting Chapster having a double coronary in Costa and not being able to thank me.

And I may have not read the thread properly too.
 
Awesome work guys working like a charm. Now I have another request ;). I can't seem to get a rewrite to www. to work say

example.com I want it to change to www.example.com if you miss off the www.

and then do a redirect to a file on the server let me explain.

supasuds.co.uk automatically goes to index.php where as www.supasuds.co.uk goes to a generic apache filler page.

So I want supasuds.co.uk to change to www.supasuds.co.uk then redirect to index.php

​Cheers!
 
You would be correct just index.php.

Strange thing is ice looked at it on my phone from both addresses with and without www and it works my mate said it works also and it works on my misses netbook :/ what the hell.
 
  Bus w**ker
Have you checked the cPanel settings?
What's in your .htaccess file?
Diet starts today, right?
 
Apparently I had to clear my Cache because the domain was so new the name servers where still adjusting themselves. All seems to be in working order now :D I hate HTACCESS.

Oh diet?! Yeah starts after I finish the sausage roll I have in the car ;).
 


Top