Forum Moderators: open

Message Too Old, No Replies

Problem with redirection.

Sorry for bothering you.

         

iYBK

12:20 am on Mar 22, 2006 (gmt 0)



I'm very new to this forum. To be honest, this is my first post ever. To get to the point, I am trying to get a redirect code that does not support meta tags OR javascript WHATSOEVER. I have looked on many websites, but found nothing, so i decided to go here and ask you guys.

jdMorgan

1:45 am on Mar 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



iYBK,

Welcome to WebmasterWorld!

Do you mean you want to redirect something (a site, a page, an image, what?) without using an HTML meta-refresh or client-side JavaScript code? If so, it's usually done on the server, using PHP or another server-side scripting langauge, or by using server configuration directives, such as the Redirect and RewriteRule directives on Apache servers or ISAPI rewrite on IIS servers.

So, the solution depends on what specifically you are trying to accomplish, what kind of server the site is hosted on, and what scripting languages are available and familiar to you.

Jim

rocknbil

5:30 pm on Mar 22, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Copy everything between the lines, paste it into a plain text file, save as index.cgi or index.pl:

--------------
#!/usr/bin/perl
print "Location:http://www.webmasterworld.com\n\n";
--------------

Upload to a test directory and chmod the file to 755 (set permissions to executable.)

Welcome aboard! :D

Kufu

5:46 pm on Mar 22, 2006 (gmt 0)

10+ Year Member



rocknbil,

What does that code do exactly?

Does this create a 301 redirect?