Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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]
</IfModule>

Thanks

share|improve this question
2  
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

1 Answer 1

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 \.
Turning

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

into

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

should resolve one possible problem.

share|improve this answer

Your Answer

 
discard

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.