I have this code:
<IfModule mod_rewrite.c>
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ראשי$ index.php?page=main [L,QSA,NC]
RewriteRule ^ניהול גלריות$ index.php?page=galleries [L,QSA,NC]
RewriteRule ^ניהול דפים$ index.php?page=pages [L,QSA,NC]
RewriteRule ^ניהול משתמשים$ index.php?page=users [L,QSA,NC]
RewriteRule ^הגדרות כלליות$ index.php?page=settings [L,QSA,NC]
RewriteRule ^דיווחים$ index.php?page=reports [L,QSA,NC]
</IfModule>
It’s making an 500 internal server error, if I only put the lines with one word like “דיווחים” it works but when I add those with two words like “ניהול דפים” not working.
How can you fix it? (maybe the problam is in the space between the 2 words?)
- The language isn’t the problem even if I use English it’s not working.
- My address is like /ניהול דפים
What you are writing there essentially are regular expressions. You might want to try using a regular expression meta character to indicate the presence of a space.
Why don’t you try something like this –
The
\sindicates whitespace.