mod rewrighte

Started on the old forum in May 2010 · view the original in the archive · old links redirect here

27 replies · 1,775 views · started 16 years ago · 1 min read

10 participants
jsyguy23 Developer · 134 posts #1

RewriteEngine on

RewriteBase /

RewriteBase /subdirectory/

RewriteRule ^admin/$ index.php/admin/login/ RewriteRule ^admin$ index.php/admin/login/

RewriteCond $1 !^(index.php|application/images|application/scripts|application/css|application/content|application/settings|favicon.ico) RewriteRule ^(.*)$ index.php/$1

can some show me how to do this for lava script please v2 one

subzero Super moderator Fellow · 3,954 posts #2

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

jsyguy23 Developer · 134 posts #3

yeah lol but how u i put it in this

RewriteRule ^admin/$ index.php/admin/login/ RewriteRule ^admin$ index.php/admin/login/

RewriteCond $1 !^(index.php|application/images|application/scripts|application/css|application/content|application/settings|favicon.ico) RewriteRule ^(.*)$ index.php/$1

subzero Super moderator Fellow · 3,954 posts #4

simple

RewriteRule ^login$ index.php?action=login RewriteRule ^main/(.*)$ index.php?action=main&sid=$1

or keep the index as admin

RewriteRule ^admin=(.)=(.)$ index.php?action=$1&sid=$2

Any problems let me know

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

subzero Super moderator Fellow · 3,954 posts #8

like what more info then i know what you really want to be done.

Visit: Chat4u.mobi - The New Lay Of being a site of your dreams! Visit: WapMasterz Coming Back Soon!


SCRIPTS FOR SALE BY SUBZERO Chat4u Script : coding-talk.com/f28/chat4u-mobi-script-only-150-a-17677/ - > Best Script for your site no other can be hacked by sql or uploaders. FileShare Script : coding-talk.com/f28/file-wap-share-6596/ -> Uploader you will never regret buying yeah it mite be old now but it still seems to own others... _______…

jsyguy23 Developer · 134 posts #10

ok sub ive done this but its not working can u see where im going wrong ??

RewriteEngine on

RewriteBase /localhost/

RewriteRule ^login$ index.php?signin=yes RewriteRule ^main/(.)$ main.php?ses=$1 RewriteRule ^online/(.)$ online.php?ses=$1 RewriteRule ^profile/(.*)$ profile.php?ses=$1&userid=$2

RewriteRule ^admin=(.)=(.)$ index.php?signin=$1&ses=$2

ewanz Developer · 187 posts #14

how this mod rewrite for what?? can someone explain...

our lfe is simple words.... 😌 http://mygenkz.net ewanz06@yahoo.com

$output="i am NOoob....";
$newfile="ewanz.txt";
$file = fopen ($newfile, "w");
fwrite($file, $output);
fclose ($file); 
koizumi Developer · 81 posts #15

mod_rewrite is mainly use for SEO, so you dont need to mod_rewrite evrything.

heres a list of what you should mod_rewrite

Profile Page Forum(topics,forum category) Downloads(category,individual files)

kabooms Developer · 80 posts #16

.htacces modrewrite in lavalair user profile in shoutbox seo friendly url.

AddType application/x-httpd-php .htm.html.baz
AddHandler x-httpd-php .htm.html.baz

Options +FollowSymlinks
RewriteEngine On

RewriteRule ^user-([0-9]+)-(.*)-(.*).html$ index.php?action=viewuser&who=$1&sid=$3 
RewriteRule ^shouts-(.*).html$ shouts.php?sid=$1
RewriteRule ^shout-(.*).html$ shout.php?sid=$1

next edit your script to this example in shoutbox

echo "<b>ShoutBox</b><br />";
  $lshout = mysql_fetch_array(mysql_query("SELECT shout, shouter, id  FROM ibwf_shouts ORDER BY shtime DESC LIMIT 1"));
  $shnick = getnick_uid($lshout[1]);
  
  echo "<a href=\"user-$lshout[1]-$shnick-$sid.html\">".$shnick."</a>: ";
  echo parsepm($lshout[0], $sid);
  echo "<br />";
  echo "<a href=\"shouts-$sid.html\">more</a>, ";
  echo "<a href=\"shout-$sid.html\">shout</a>";

clean output

user-1-bazztord-sidhere.html
shout-sidhere.html
shouts-sidhere.html
kabooms Developer · 80 posts #18

whitewingz wrote: where i put this mod wrewrite to fucntion/work??

simple read my instruction ..add code at .htaccess next edit ur script ..

jsyguy23 Developer · 134 posts #19

ive tryed the code u put here kabooms but all i get is a blank page and the url looking like this http://localhost/profile-1-jsyguy23-3b8c1134f831ecdc6da4cefff760da1b.html

and done code like this

RewriteRule ^profile-([0-9]+)-(.)-(.).html$ profile.php?userid=$1&ses=$3 RewriteRule ^history-(.).html$ history.php?ses=$1 RewriteRule ^shout-(.).html$ shout.php?ses=$1

and links like shout-$ses.html history-$ses.html

and so on where am i going wrong

Sign in to reply.

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