Jump to content
php.lv forumi

php -> kā izlaist mapi?


Fevelix
 Share

Recommended Posts

Man te tāds štuks.

 

Piem. Man ir mapju struktūra - www\mape1\mape2

http likā izskatās tā - http://mana.lapa.lv/mape1/mape2/

 

Es gribētu uzināt skriptu kas varētu izlais mape1.

Īsāk sakot vajag skriptu kas ļautu redzēt http://mana.lapa.lv/mape1/mape2/ ja ietu http://mana.lapa.lv/mape2/

 

Es esmu iesācējs php programmēšanā, takā davai bez tiem "Noob", jeb kkādiem apvainojumiem. ;)

Link to comment
Share on other sites

1. Vai tad kāds Tevi te par "Noobu" saucis - nedomāju. :)

2. .htaccess failā mēģi ielikt

<IfModule mod_rewrite.c> 
RewriteEngine On
RewriteRule ^mape2(/)?$ /mape1/mape2/ [R]
</IfModule>

Edited by nikidijs
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...
 Share

×
×
  • Create New...