Making custom HTTP headers

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
submile
-


Joined: 05 Apr 2003
Posts: 5

PostPosted: Sat Apr 05, 2003 7:31 pm    Post subject: Making custom HTTP headers Reply with quote

I have recently redesigned my site and renamed my pages to better fit the structure of the pages. Google is carrying my bad filenames from before and I want a 301 Moved Permanently HTTP header forwarding users to the new pages. How do I make the Abyss server redirect /file1.htm to /file2.htm?
_________________
Step into the Abyss...
Back to top View user's profile Send private message
vbgunz
-


Joined: 02 Feb 2003
Posts: 615
Location: Florida

PostPosted: Sat Apr 05, 2003 9:10 pm    Post subject: Reply with quote

if file1 is an error page why not put a lil redirect in it? You can bounce your visitors immediately or bounce them in 5 seconds... Good luck :)
_________________
Victor B. Gonzalez
http://aeonserv.com
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
submile
-


Joined: 05 Apr 2003
Posts: 5

PostPosted: Sat Apr 05, 2003 9:22 pm    Post subject: Reply with quote

That's a good idea :D I'll do that. 301 messages have a better advantage because they go straight to the new file. When they see my custom error page, I can redirect them to the homepage, but not to the file they want.

I know there's a way to specify pragmas in HTTP headers and in meta tags. Can I specify 301 codes in meta tags? Then, I could create empty pages with the old filename and redirect them that way.

This way, the 301 can tell them that Page 1 has become Page 2 and automatically forward them to the new page. The 404 page can tell them that the page they're trying to see never existed in the first place. 301 pages are awesome because they're an enhanced version of 404s. I just don't know how to set them up.

Thanks! 8)
_________________
Step into the Abyss...
Back to top View user's profile Send private message
vbgunz
-


Joined: 02 Feb 2003
Posts: 615
Location: Florida

PostPosted: Sat Apr 05, 2003 9:35 pm    Post subject: Reply with quote

Thanks for the info :) I do not know how to do what you're asking but if worst comes to worst why not simply put a sitemap on your error pages? It would probably help the lost visitor a bit more than a simple redirect...

Or to make maintenance even better have all your error pages bounce to one sitemap...

Hey what you want done I certainly see possible. I do not know how but doesn't mean it cant be done... Please, when you fidn out make a short guide and tell the rest of us how its done.

Good luck :)
_________________
Victor B. Gonzalez
http://aeonserv.com
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
submile
-


Joined: 05 Apr 2003
Posts: 5

PostPosted: Sat Apr 05, 2003 9:51 pm    Post subject: Reply with quote

Oh, now that's a great idea!!! :idea: :D

I never thought of putting a site map on my error pages. That would be a good idea. I'm not going to give up on the 301 though.

If I find out how to do it, I'll post here with a guide how to do it. I'd love to have that kind of feature on my pages.

Have a nice day!
_________________
Step into the Abyss...
Back to top View user's profile Send private message
submile
-


Joined: 05 Apr 2003
Posts: 5

PostPosted: Sun Apr 06, 2003 9:49 am    Post subject: Reply with quote

I found out how!

It's a thing called .htaccess It's a file without a name, only the extension. That goes in the first folder of your web server. In it, you can put things in the file that redirect, or do other things.

http://www.javascriptkit.com/howto/htaccess.shtml

There's a good tutorial above. I haven't got around to trying it out yet, but I'm sure it's going to be good! :D
_________________
Step into the Abyss...
Back to top View user's profile Send private message
vbgunz
-


Joined: 02 Feb 2003
Posts: 615
Location: Florida

PostPosted: Sun Apr 06, 2003 9:40 pm    Post subject: Reply with quote

I wish to thank you both on your ideas and input about this. I learn everyday :)
_________________
Victor B. Gonzalez
http://aeonserv.com
Back to top View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
submile
-


Joined: 05 Apr 2003
Posts: 5

PostPosted: Mon Apr 07, 2003 12:48 am    Post subject: Reply with quote

Your welcome! 8) :D
_________________
Step into the Abyss...
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group