Forum Moderators: phranque

Message Too Old, No Replies

Help me check the first path element

         

lokeshshettyk

3:49 pm on Sep 18, 2008 (gmt 0)

10+ Year Member



Hi
My site : http://pl.example.com/iphone
My host name is pl.example.com

I have been trying to fix an issue with htaccess, googled it for a very long time, learned few new stuff but could not solve my own problem.

What I am looking for is when the page is loaded you could see the pagination link below the articles which shows as - http://pl.example.com/page/pagenum. I am expecting it show http://pl.eexample.com/iphone/page/pagenum. What am I not doing properly? I guess I need a rewrite Condition?


RewriteRule ^iphone/page/([0-9999]+)/?$ /index.php?a=iphone-home&postpage=$1 [L,QSA]

[edited by: jdMorgan at 4:23 pm (utc) on Sep. 18, 2008]
[edit reason] please use example.com [/edit]

jdMorgan

4:26 pm on Sep 18, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As I stated in your earlier thread [webmasterworld.com], you cannot change the URL with mod_rewrite or any other Apache module.

You must edit/modify the script that generates your HTML pages, so that the correct links appear on your pages.

After you do that, you can use mod_rewrite to "re-connect" the new URLs to the script that is used to generate the requested page.

Jim