Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
301 redirect using .htaccess
Old 06-11-2009, 05:10 AM 301 redirect using .htaccess
Junior Talker

Posts: 1
Trades: 0
I have a new website and I would like to redirect all the old pages to my new website's new pages.

My old website is built using php. My home page is domainname.com/index.php. I do not have any problem redirecting my old website home page to my new website home page.

My problem is:

My old website pages are called into the old site by (domainname.com/index.php?p=seo friendly page name).

an example redirect would be:

redirect301 /index.php?p=breakfast http://www.domainname.com/content/category/51/74/139/

this redirect only brings up my home page of www.domainname.com however in the address bar the address displayed is http://www.domainname.com/?p=breakfast.

I need it to bring up the actual page (not the home page) at http://www.domainname.com/content/category/51/74/139/ and that address be displayed in the address bar.

I have 96 pages that are called into the old website using the (domainname.com/index.php?p= ) call in system.

The (index.php?p=) system is really giving me a problem on my redirects. Any help would be greatly appreciated.

Thanks in advance.
MetroWeb is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Reply     « Reply to 301 redirect using .htaccess
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15005 seconds with 12 queries