mod_rewrite .htaccess need help amylee, Sub,Gum and Rukiya

Started on the old forum in November 2009 · view the original in the archive · old links redirect here

3 replies · 896 views · started 17 years ago · 1 min read

4 participants
waplinks Newbie · 1 posts #1

mod_rewrite .htaccess need help Sub,Gum and Rukiya Lavalair Mods Lavalair Mods Lavalair Mods

Any one could give me the mod_rewrite on .htaccess to fetch user like

wap.pinoy9.com/gabo wap.pinoy9.com/mangs wap.pinoy9.com/keith04

index.php?user=gabo index.php?user=mangs index.php?user=keith04

how to change http://url.com/index.php?user=gabo to url.com/gabo ?

how to make url.com/gabo

RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(\w+)/?$ /index.php?user=$1

handler code

<?php   
  
// Get the username from the url   
$id = $_GET['user'];   
  
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"   
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">   
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">   
<head>   
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>   
    <title>Simple mod\_rewrite example</title>   
    <style type="text/css"> .green { color: green; } </style>   
</head>   
<body>   
  <h1>You Are on index.php!</h1>   
  <p>Welcome: <span class="green"><?php echo $id; ?></span></p>   
</body>   
</html>

what's wrong with this code? it gives me error 500 for http://url.com/gabo help me please.. 😳:(

Any coder can help me? Lavalair Mods mod_rewrite .htaccess need help amylee, Sub,Gum and Rukiya custom link page for users

riderz Lead · 975 posts #3

topic closed

Use search button

LMAO u wont get any help from gumslone regarding lava he never used it same with subzero he also dnt do lava and i think Rukiya are the one who could help but will need to get into his good books LMAO


Jacques jacques@gw-designs.co.za http://coding.biz.tm Come join and lets make it a place to learn all the noobies how to code


NEVER FORGET TO CLICK THE TANX BUTTON IF U LIKE WHAT IM SHARING OR HELPING WITH

djdevil89 Senior · 287 posts #4

riderz wrote: topic closed

Use search button

LMAO u wont get any help from gumslone regarding lava he never used it same with subzero he also dnt do lava and i think Rukiya are the one who could help but will need to get into his good books LMAO

Riderz u are being mean m8 lol

foreach ($_SERVER as $server => $value)
{
echo "$server is $value<br />";
}

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close