homepage Welcome to WebmasterWorld Guest from 54.235.61.62
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
301 Redirect Help Needed
via htaccess
u4eas




msg:3726447
 4:24 pm on Aug 19, 2008 (gmt 0)

I am trying to 301 a uri like this:
example.com/index.php?id=1

to point to the new new uri:
example.com/toons

Any thoughts I have tried a couple different ways and cant seem to get it right.

 

jdMorgan




msg:3726467
 4:56 pm on Aug 19, 2008 (gmt 0)

Please post your best-effort code as a basis for discussion. You may find this thread [webmasterworld.com] in our Forum Library to be useful.

Jim

webdoctor




msg:3726528
 6:47 pm on Aug 19, 2008 (gmt 0)

I am trying to 301 a uri like this:
example.com/index.php?id=1

to point to the new new uri:
example.com/toons

1. Are you using Apache/Linux... or IIS/Windows... or something else?

2. I presume you've got lots of URIs like

example.com/index.php?id=1
example.com/index.php?id=2
example.com/index.php?id=3

and so on. Do you need to redirect each one to

example.com/alpha
example.com/beta
example.com/gamma

or is there some other pattern? Please give us a bit more info :-)

u4eas




msg:3726613
 8:53 pm on Aug 19, 2008 (gmt 0)

Im not at home so I cant see the things I tried

Webdoctor, you are correct

Apache using htaccess

I have a bunch of uris like you showed above, and need them to map them just like you thought.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved