Jump to content


Photo

linux rewrite_module


  • Please log in to reply
No replies to this topic

#1 viszinisa

viszinisa
  • New Members
  • Pip
  • Newbie
  • 1 posts

Posted 03 October 2006 - 11:23 AM

so...
i wanted to use smth like this

www.myweb.com/web/articles/324/pics/

and this become

www.myweb.com/index.php?_rq=/web/articles/324/pics/

its done with .htaccess file in main directory where is index.php which is used...

............

so some1 told me that
i need to in file named "httpd.conf" which is in "conf/" folder
uncoment these lines..
LoadModule rewrite_module modules/mod_rewrite.so
AddModule mod_rewrite.c
and also see this line where is
<directory "dir/dir/bla bla bla">
i need to edit this line
AllowOverride All


and later i need to make file .htaccess
in folder with index.php
with text....
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?_rq=$1 [QSA]

-------------------------------------------------------

so the problem is...
he told me all that if OS was Windows...
but i have Linux Ubuntu (newest version)
files isnt where they meant to be
and the content aint that either... (i hope u understand)

--------------------------------------------------------

so next
i took apache2.conf file
and found in it that <directory "bla bla"> line (there was 3 lines)
and httpd.conf added 2 new line with that LoadModule rewr....etc

there was 3 lines with <directory "bla bla">
2 uncommented
1 commented
Q: do i need to rewrite all those 3 places where is AllowOverride... None to All???

sry for this long text :D


Or just tell me how to run rewrite_module on Linux Ubuntu plz :D




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users