Jump to content
php.lv forumi

Vajadzīga palīdzība ar mod rewrite.


nemakuphp

Recommended Posts

Pieņemsim, ka man ir links http://domens.lv/index.php?p=x&a=y

 

Man izdodas veiksmīgi pārvērs par http://domens.lv/x/y'>http://domens.lv/x/y

 

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^x/(.*) index.php?p=x&a=$1
RewriteRule ^z/(.*) index.php?p=z&s=$1

 

BET, ja es ieeju tikai http://domens.lv/x,'>http://domens.lv/x, tad uzmet kļūdas paziņojumu

 

Not Found

 

The requested URL /x was not found on this server.

 

Kā šo varētu labot?

 

Derētu arī tāds variants, ka saiti http://domens.lv/x uzskata par http://domens.lv/index.php?p=x&a=* (Zvaigznītes vietā jebkas)

 

Ceru, ka spēsiet palīdzēt.

Edited by nemakuphp
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...