Jump to content
php.lv forumi

modrewrite


freak

Recommended Posts

Izmantoju modrewrite, lai veidotu permalinkus.

Viss, ok tikai problema rodas, ja gribu izveidot permalinku ar diviem / , piemeram: domen.lv/aa/bb.

Problema rodas, jo tad visam bildes, kas ir majas lapaa, adrese izmainas uz domen.lv/aa/picture.jpg , bet vajag domen.lv/picture.jpg

ko man darit?

 

Kods:

RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f

RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^about index.php?sadala=about [L,QSA]

RewriteRule ^aa/bb index.php?sadala=test [L,QSA] <- nestrada

Link to comment
Share on other sites

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.   Paste as plain text instead

  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.

Loading...
×
×
  • Create New...