Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[Solved]APACHE .htaccess problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Trane
n00b
n00b


Joined: 27 Jul 2008
Posts: 4

PostPosted: Wed Jul 30, 2008 4:02 pm    Post subject: [Solved]APACHE .htaccess problem Reply with quote

Hi thete, i installed apache with mod_rewrite support all is working, mod is loaded corectly.
But.... When i upload or create .htaccess the file simply disappears, even if i try to create it in SSH, when i hit nano .htaccess all code is there, that would be OK but apache cannot see it so, i cant use it :(


Last edited by Trane on Wed Jul 30, 2008 4:52 pm; edited 1 time in total
Back to top
View user's profile Send private message
weisso5
Apprentice
Apprentice


Joined: 07 Dec 2007
Posts: 268
Location: NYC

PostPosted: Wed Jul 30, 2008 4:08 pm    Post subject: Reply with quote

Hello,

Please consult:
Code:

#man htpasswd


-weisso
Back to top
View user's profile Send private message
Trane
n00b
n00b


Joined: 27 Jul 2008
Posts: 4

PostPosted: Wed Jul 30, 2008 4:18 pm    Post subject: Reply with quote

weisso5 wrote:
Hello,

Please consult:
Code:

#man htpasswd


-weisso


Dont think that this helped me. :cry:

Thanks for the quick reply....
Back to top
View user's profile Send private message
weisso5
Apprentice
Apprentice


Joined: 07 Dec 2007
Posts: 268
Location: NYC

PostPosted: Wed Jul 30, 2008 4:25 pm    Post subject: Reply with quote

woops, sorry, i thought you said .htpasswd :oops:


can you post your .htaccess ?

-weisso
Back to top
View user's profile Send private message
Trane
n00b
n00b


Joined: 27 Jul 2008
Posts: 4

PostPosted: Wed Jul 30, 2008 4:31 pm    Post subject: Reply with quote

np, its the htaccess of Wordpress.
Code:
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

RewriteEngine On
RewriteBase /
AddDefaultCharset UTF-8
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{QUERY_STRING} !.*attachment_id=.*
RewriteCond %{QUERY_STRING} !.*wp-subscription-manager=.*
RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz [L]
 
RewriteCond %{REQUEST_METHOD} !=POST
RewriteCond %{QUERY_STRING} !.*s=.*
RewriteCond %{QUERY_STRING} !.*attachment_id=.*
RewriteCond %{QUERY_STRING} !.*wp-subscription-manager=.*
RewriteCond %{HTTP_COOKIE} !^.*(comment_author_|wordpress|wp-postpass_).*$
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
RewriteRule ^(.*) /wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html [L]
Back to top
View user's profile Send private message
Trane
n00b
n00b


Joined: 27 Jul 2008
Posts: 4

PostPosted: Wed Jul 30, 2008 4:51 pm    Post subject: Reply with quote

omg im so stupid :lol: :lol: , i forgoten to enable htaccess for my domain folder in httpd.conf.
Thank you anyways weisso for your efford of helping me :)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum