viszinisa Posted October 3, 2006 Share Posted October 3, 2006 so...i wanted to use smth like thiswww.myweb.com/web/articles/324/pics/and this becomewww.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 thati need to in file named "httpd.conf" which is in "conf/" folderuncoment these lines..[code]LoadModule rewrite_module modules/mod_rewrite.soAddModule mod_rewrite.c[/code]and also see this line where is[code]<directory "dir/dir/bla bla bla"> [/code]i need to edit this line[code]AllowOverride All[/code]and later i need to make file .htaccessin folder with index.phpwith text....[code]RewriteEngine onRewriteCond %{REQUEST_FILENAME} !-fRewriteCond %{REQUEST_FILENAME} !-dRewriteRule ^(.*)$ index.php?_rq=$1 [QSA][/code]-------------------------------------------------------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 beand the content aint that either... (i hope u understand)--------------------------------------------------------so nexti took apache2.conf fileand found in it that <directory "bla bla"> line (there was 3 lines)and httpd.conf added 2 new line with that LoadModule rewr....etcthere was 3 lines with <directory "bla bla">2 uncommented1 commentedQ: do i need to rewrite all those 3 places where is AllowOverride... None to All???sry for this long text :D[b]Or just tell me how to run rewrite_module on Linux Ubuntu plz :D[/b] Link to comment https://forums.phpfreaks.com/topic/22853-linux-rewrite_module/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.