Jump to content

linux rewrite_module


viszinisa

Recommended Posts

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..
[code]LoadModule rewrite_module modules/mod_rewrite.so
AddModule 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 .htaccess
in folder with index.php
with text....
[code]RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ 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 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


[b]Or just tell me how to run rewrite_module on Linux Ubuntu plz :D[/b]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.