![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Server Platforms Discussion regarding any server based ubuntu release. |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Just Give Me the Beans!
![]() Join Date: Jul 2006
Beans: 79
|
mod_rewrite loaded but not working
I have seriously followed every online tutorial and nothing is working at all. I know that mod_rewrite is loaded, but it doesn't give a rat's *** about the .htaccess
Here are some configs: apache2.conf: http://www.thesarcasm.com/paste.php?id=2341125 /var/www/.htaccess: (the root of my PHP files) Code:
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} ^myusername\.homeunix\.com$
RewriteRule ^/(.*) http://google.com/$1 [L,R]
http://www.thesarcasm.com/paste.php?id=7271524 Code:
root@jesus:/etc/apache2# ls -l mods-available/ mods-enabled/ | grep "rewrite" -rw-r--r-- 1 root root 66 2007-08-16 17:45 rewrite.load -rw-r--r-- 1 root root 233 2007-12-19 21:00 rewrite.load root@jesus:/etc/apache2# Code:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so Code:
LoadModule rewrite_module /usr/lib/apache2/modules/mod_rewrite.so <IfModule mod_rewrite.c> RewriteEngine On RewriteRule ^myusername\.homeunix\.com$ http://www.google.com [R] </IfModule> |
|
|
|
|
|
#2 |
|
A Carafe of Ubuntu
![]() |
Re: mod_rewrite loaded but not working
read this link and it should explain what is going on with your
.htaccess it is ignored until you change your httpd file to allow it to use it Here is another good link with even better information http://www.javascriptkit.com/howto/htaccess.shtml Last edited by jjross; December 19th, 2007 at 11:44 PM.. |
|
|
|
|
|
#3 |
|
Just Give Me the Beans!
![]() Join Date: Jul 2006
Beans: 79
|
Re: mod_rewrite loaded but not working
Odd.
Alright, so I put "AllowOverride AuthConfig" in the /var/www <Directory>. Now, if I have even the slightest thing in my /var/www/.htaccess, it gives a 500 response code and says "<Whatever> is not allowed here." in the error.log. |
|
|
|
|
|
#4 | |
|
A Carafe of Ubuntu
![]() |
Re: mod_rewrite loaded but not working
i just found this
Quote:
|
|
|
|
|
|
|
#5 |
|
Just Give Me the Beans!
![]() Join Date: Jul 2006
Beans: 79
|
Re: mod_rewrite loaded but not working
This is from RewriteLog:
http://www.thesarcasm.com/paste.php?id=7199137 I got it reading from the .htaccess file now, which is great. .htaccess: Code:
RewriteEngine on RewriteBase / RewriteRule ^(.*)\.myusername\.homeunix\.com$ myusername.homeunix.com/blog/$1/index.php Still not working, though. :/ |
|
|
|
|
|
#6 |
|
Just Give Me the Beans!
![]() Join Date: Jul 2006
Beans: 79
|
Re: mod_rewrite loaded but not working
Resolved. I win.
Code:
me > mod_rewrite |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|