Home  |  About  | Last |  Submit  |  Contact
AllQuests.com




Previous Question:  how do do this  CSSNext Question:  How can change my forum colors  phpBB 2.0.x 2.0.x Support Forum
Question .htaccess and URL redirects when changing domain name and URL structure ( SitePoint Forums Scripts and Online Services )
Updated: 2008-11-23 09:20:03 (2)
.htaccess and URL redirects when changing domain name and URL structure

Hi!

I have a client that would like to redirect http://www.aktivfritid-shop.no/kateg...3%B8ller&bid=1

to http://www.aktivshop.no/epages/Aktiv...egories/10/100

Is this possible to do in .htaccess?
Perhaps somebody could help me by showing an example?
If this is not possible - how may I redirect all visitors to URLs that is no longer in use to the www.aktivshop.no domain?

Answers: .htaccess and URL redirects when changing domain name and URL structure ( SitePoint Forums Scripts and Online Services )
.htaccess and URL redirects when changing domain name and URL structure

Redirection can be achieved in many ways. But try this code in the index file of the website where you want all visitors to be redrected from. And you will achieve what you want.

Make sure that this is the only thing in the file and it must be at the top of the file.

PHP Code:
<?php
header("HTTP/1.1 301 Moved Permanently");
header("http://www.aktivshop.no/epages/Aktiv_Fritid.sf/secdVupgoGRCSs/?ObjectPath=/Shops/Aktiv_Fritid/Categories/10/100");
exit;
?>

rageh

.htaccess and URL redirects when changing domain name and URL structure

I would do a google search on "301 redirect" and find some articles......probably the easiest way to learn about it...

sitesbycal

Previous Question:  how do do this  SitePoint Forums  CSSNext Question:  How can change my forum colors  phpBB  phpBB 2.0.x 2.0.x Support Forum

- Source: .htaccess and URL redirects when changing domain name and URL structure SitePoint Forums Scripts and Online Services
- Previous Question: how do do this SitePoint Forums CSS
- Next Question: How can change my forum colors phpBB phpBB 2.0.x 2.0.x Support Forum