Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have installed an app which has the following rewrite rule. It runs fine in a VPS setup - but in every shared hosting it is showing 500 error. The log is showing "bad delimiter" - I am completely clueless after trying for some time. Please help

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteRule ^assets/css/(.*) /wp-content/themes/liinks theme/assets/css/$1 [QSA,L]
RewriteRule ^assets/js/(.*) /wp-content/themes/liinks theme/assets/js/$1 [QSA,L]
RewriteRule ^assets/img/(.*) /wp-content/themes/liinks theme/assets/img/$1 [QSA,L]
RewriteRule ^plugins/(.*) /wp-content/plugins/$1 [QSA,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]


share|improve this question
What happens if you change liinks theme to liinks\ theme ? – NickW May 16 '13 at 8:59
can you confirm/deny? – NickW May 16 '13 at 9:59
While it may not be the exact cause, it sure is a problem. Likely the culprit though, I suggest you post this as an answer. – David Houde May 16 '13 at 11:38
@NickW you are right. It was because of the blank space. Thanks again – Hasin Hayder May 17 '13 at 11:44
Glad I could help! – NickW May 17 '13 at 11:56
up vote 2 down vote accepted

While I'm not sure that this is the culprit, spaces in urls need to be treated specially, in this case, escaping the space with a \.

/wp-content/themes/liinks theme/assets/css/$1


/wp-content/themes/liinks\ theme/assets/css/$1

should resolve one possible problem.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.