homepage Welcome to WebmasterWorld Guest from 23.22.97.26
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
RewriteRule to make URL SEO PHP
SEO, Search Engine Freindly URL, .php to .html
irfan shaikh




msg:1251744
 7:17 am on May 28, 2005 (gmt 0)

Hello,

I am facing problem to set RewriteRule for URL

[test.domain.lp...]

to

[test.domain.lp...]

help?

Regards,
Irfan

 

madpenguin2




msg:1251745
 11:05 pm on May 28, 2005 (gmt 0)

Interesting... I just did this to a new site today..

The .htaccess file would look something like this..

RewriteEngine on
RewriteBase /

RewriteRule ^polyphonic-ringtones/(.*)\.html$ /polyphonic_ringtones.php?id=$1 [L]

or something similar..

Brett

irfan shaikh




msg:1251746
 5:25 am on May 29, 2005 (gmt 0)

gr8

I made one for myself

RewriteRule ^polyphonic-ringtones/(.*).html polyphonic-ringtones.php?id=$1 [PT]

but what is I am having more then one parameter

RewriteRule ^polyphonic-ringtones/(.*).html polyphonic-ringtones.php?id=$1&modrul=cat1 [PT]

Now I like to add the cat1 also to me Rewrite URL.

Regards,
Irfan Shaikh

madpenguin2




msg:1251747
 10:44 pm on May 29, 2005 (gmt 0)

then it would look something like

RewriteRule ^polyphonic-ringtones/(.*)/modrul/(.*)\.html polyphonic-ringtones.php?id=$1&modrul=$2 [PT]

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
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