WebFaction
Community site: login 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 17 Jun '11, 15:49

Adam
18279
accept rate: 0%


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.

permanent link

answered 17 Jun '11, 16:04

seanf
12.2k41836
accept rate: 37%

edited 17 Jun '11, 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!

(17 Jun '11, 16:42) Adam

Something like this should work:

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

Hope that helps!

(17 Jun '11, 17:00) seanf
Your answer
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

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×225
×125
×33
×31
×24

question asked: 17 Jun '11, 15:49

question was seen: 7,118 times

last updated: 17 Jun '11, 17:00

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM