הוסטס - פורום אחסון האתרים הגדול בישראל

הוסטס - פורום אחסון האתרים הגדול בישראל (https://hosts.co.il/forums/index.php)
-   פורום תיכנות (https://hosts.co.il/forums/forumdisplay.php?f=14)
-   -   שאלה איך יוצרים כתובת סטטית (https://hosts.co.il/forums/showthread.php?t=66190)

intercooler3819 13-08-08 03:49

umm i would suggest to rewrite something likes:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L

then you can do whatever you want in index php
this is more efficient because htaccess-per-folder is really really less efficient than php.ini rewrite / global rewriting

DaNieLLL 14-08-08 15:40

ציטוט:

נכתב במקור על ידי nitsanbn (פרסם 659290)
umm i would suggest to rewrite something likes:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L

then you can do whatever you want in index php
this is more efficient because htaccess-per-folder is really really less efficient than php.ini rewrite / global rewriting

איפה לכתוב את הקוד הנ"ל?

Striker 14-08-08 20:36

:| צריך להיות חוק נגד אנשים כמוך.. אהה בעצם יש איזה חוק :S אסור לתת פה קודים מוכנים.

בכל מקרה, צור קובץ HT.ACCESS בתיקיה בשרת ושפוך תקוד שמה


כל הזמנים הם GMT +2. הזמן כעת הוא 05:36.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ