Forcing search engine back to main page.
Forcing search engine back to main page.
Author
Discussion

Morningside

Original Poster:

24,147 posts

260 months

Sunday 4th February 2007
quotequote all
Is there a way to do this? For example:

www.example.com
Gives main page

www.example.com/testing.html
Shows up. But when click forces the user back to main page. main reason is due to the 'engine' shows the home server page.

http://88.123.456.789/testing.html
and my local address is dynamic (and cannot guarantee that address) I would like the search engine to show it as:

www.example.com



Webshite is NOT worth posting here as it is in VERY early development stage and is only used to see what happens in the real world. so

shocker-z

554 posts

249 months

Sunday 4th February 2007
quotequote all
What language u using for your site? because you could use PHP to check the referral page..

I think that there is a way with .htaccess too but i havn't actualy used that method before.


Regards
Liam

GreenV8S

31,027 posts

315 months

Sunday 4th February 2007
quotequote all
I can't make sense of your question, I'm afraid.

slapmatt

1,132 posts

253 months

Monday 5th February 2007
quotequote all
You can set up a permanent re-direct (301) in .htaccess by adding this line:

redirect 301 /testing.html /

morningside

Original Poster:

24,147 posts

260 months

Monday 5th February 2007
quotequote all
htaccess... I have had a good read about it now. That what I needed. Thanks all.