login community faq
0
1

I have a Static app (with .htaccess support) I added a .htaccess file to the directory, but nothing happened. I'd like to restart Apache. How do I do that?

Thanks!

asked Jun 17 '11 at 15:49

Adam's gravatar image

Adam
1628


You can't restart the shared system Apache - but that's OK, you shouldn't need to. .htaccess files are processed on every request, so any changes you make are available as soon as you make them.

If you're not seeing the expected result, then there's probably a problem with your .htaccess directives. If you'd like us to look into it further, then feel free to post details in a comment here, or submit a support ticket via the control panel.

answered Jun 17 '11 at 16:04

seanf's gravatar image

seanf ♦♦
59491220

edited Jun 17 '11 at 16:04

OK, here's my problem: the app is called concentation it exists in a folder called ~/webapps/concentration/Concentration . The url is adamrich.name I want adamrich.name/something.html to load ~/webapps/concentration/Concentration/something.html not ~/webapps/concentration/something.html which it currently points to that doesn't exist. I created a file ~/webapps/concentration/.htaccess to try and make it work, but I've probably written it wrong. How can I do this? Thanks!

(Jun 17 '11 at 16:42) Adam Adam's gravatar image

Something like this should work:

1
2
3
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/Concentration/
RewriteRule ^(.*)$ /Concentration/$1 [P,L]

Hope that helps!

(Jun 17 '11 at 17:00) seanf ♦♦ seanf's gravatar image
Your answer
If you have an answer to the above question, then use the form below. Otherwise, use the appropriate 'add new comment' button above to post your feedback.
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Tags:

×151
×94
×21
×17
×15

Asked: Jun 17 '11 at 15:49

Seen: 1,583 times

Last updated: Jun 17 '11 at 17:00

Plans & prices    Sign up    Why WebFaction?    Contact us    Affiliate program    Support    Legal    Jobs    Blog    Control panel login
Powered by OSQA
© Copyright 2003-2012 Swarma Limited - WebFaction is a service of Swarma Limited