how to redirect search engine result to new smf directory?

Started by fairx, March 24, 2006, 10:16:03 PM

Previous topic - Next topic

fairx

hi there good people

I used to install SMF in subdir in a subdomain ie

http://silverian.myfairx.com/smf

coz I need to integrate with mkportal

however I found tinyportal (nice) and found no need to use a subdir anymore so I change reinstall everything back to http://silverian.myfairx.com (bad move ..)

however, search engine already listing the old /smf dir ie. "silverian.myfairx.com/smf/index.php?board=8.0"

the question is; How do I setup my /smf dir so every query is redirected to main index.php ?

every help is appreciated

thanks in advance guys!

edit*

this is the example of my problem:
http://search.yahoo.com/search?p=silverian&toggle=1&ei=UTF-8&vst=0&vs=silverian.myfairx.com&fr=FP-tab-web-t&b=11

Fizzy

How about using .htaccess?

Something like
Redirect /smf http://silverian.myfairx.com/  [R=301,L]
"Reality is merely an illusion, albeit a very persistent one." - A.E.


MH-MINI

Or if your host has cPanel, you could use the redirect function in there.

Mini

fairx

thanks for all the suggestions guys..

the .htaccess redirection works like a charms..!  :o

thanks a lot!!   ;)

I'm happy now..

I'm curious though.. what
[R=301,L]

is for?


Fizzy

It's a tag for search engines. It tells them that the page has been moved and that they shouldn't try to keep indexing it.
The search engine spiders will be able to trawl your new url config and soon load up all of the new urls ;)
"Reality is merely an illusion, albeit a very persistent one." - A.E.


fairx

thanks for the explaination!

fix 2 problem at the same time!

Advertisement: