homepage Welcome to WebmasterWorld Guest from 54.81.170.186
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe and Support WebmasterWorld
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
URL rewriting
Changing and hiding
traffik daddy




msg:1496670
 11:28 am on Jun 6, 2006 (gmt 0)

Hello all,

I have a URL in php that I want to manipulate and I'm struggling to get a grasp of it.

http://www.example.co.uk/mypage.php?asn=0000&qry=my+search+term+here

I want to change it so it hides the associate number and makes the URL SEO friendly to look like:

http://www.example.co.uk/mypage/my-search-term-here.html

I've tried online mod_rewrite tools and all sorts but just cant get my head around it.

Can anyone please help?

Thank you
TD

[edited by: jdMorgan at 12:57 am (utc) on June 7, 2006]
[edit reason] example.co [/edit]

 

jdMorgan




msg:1496671
 1:34 am on Jun 7, 2006 (gmt 0)

Understand that the link seen by your visitors must be the friendly ones. That means that the friendly URLs must be used on your pages and possibly, on your affiliates' pages. Mod_rewrite can then be used, once one of these friendly URL requests is received by your server, to re-arrange it into the form needed to run your scripts.

However, I used the term 're-arranged' advisedly, since information cannot be added. And what that means is that in this scenario, you'd have to delete the affiliate IDs from your pages, and ask them to delete them from ther pages, and once deleted, mod_rewrite could certainly not recover them. As such, mod_rewrite offers no solution to this problem.

This thread [webmasterworld.com], while not addressing your specific problem, describes the step-by-step process of URL rewriting and what it means.

Jim

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.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved