Forum Moderators: bakedjake

Message Too Old, No Replies

mod rewrite problem

         

top20hot

2:22 pm on Oct 16, 2003 (gmt 0)

10+ Year Member



hello everyone.
i have site.com/in.php?id=xxx
i need site.com/xxx

please help to write this mod.

coopster

2:45 pm on Oct 16, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Here are a couple of good posts to get you started:
[webmasterworld.com...]
[webmasterworld.com...]

d_fused

2:48 pm on Oct 16, 2003 (gmt 0)

10+ Year Member




i have site.com/in.php?id=xxx
i need site.com/xxx
please help to write this mod.

Hi and welcome to Webmasterworld

You could try the following in your .htaccess file


RewriteEngine on
RewriteRule ^([^.]+)$ in.php?id=$1 [L]

Please note that this could affect the rest of the files in your root folder.

You could also try:


RewriteEngine on
RewriteRule ^([0-9]+) in.php?id=$1 [L]

Please let us know if this works.