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

This is my first time setting up my own linux server. I am migrating from shared hosting to my own cloud. mod_rewrite and mod_proxy are loaded.

I know for sure what I have in my htaccess worked on my old host, but doesn't on my linux server.

Options +FollowSymLinks
Options -Indexes
RewriteEngine on

# This works
RewriteRule index.php / [L,R=301]

# This works
RewriteCond %{REQUEST_FILENAME}.php -f
RewriteRule !.*\.php$ %{REQUEST_FILENAME}.php 

# This doesn't work
RewriteRule ^help/([^/]+)/$ /help.php?page=$1

What gives?

Thanks for your help.

share|improve this question

1 Answer 1


Rewrite ^help/(.+)/$ /help.php?page=$1 

When accessing try:


It should work.

P.S. domain.com/help/testingpage != domain.com/help/testingpage/

share|improve this answer
Still doesn't work. domain.com/help/testingpage goes to domain.com/help so does domain.com/help/anythingelse –  Bastien Nov 14 '10 at 5:58

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.