Portal Home > Knowledgebase > Articles Database > mod_rewrite
mod_rewrite
Posted by TylerH, 10-02-2007, 04:22 PM |
Ok, I'm not to sure if this is the right place to be asking or talking about my problem... But if it is Mod/Admin please move it.. Thanks..
ANYWAY! haha.. Well Its October and I have a Server at home with me running NO CONTROL PANEL... I have been using it for 5 years now... But my problem is my mod_rewrite is not working... I have tried fixing it... But I can't find it in the httpd.conf file where I heard it was at... They said it came by default by Apache..
I'm running Apache2.2.4, Fedora Core 7), PHP 5, MySQL 5.... I don't see the mod_rewrite on there.... idk what I am doing wrong please help... Thanks.
Tyler
|
Posted by Patrick, 10-02-2007, 04:28 PM |
You don't see mod_rewrite.so anywhere in the Apache configuration file?
It might look like:
LoadModule rewrite_module libexec/mod_rewrite.so
|
Posted by TylerH, 10-02-2007, 04:49 PM |
No.. I forgot to add that I did see this
"LoadModule rewrite_module modules/mod_rewrite.so"
But I don't see..
"RewriteEngine On"
|
Posted by Phildar, 10-02-2007, 04:57 PM |
I believe you would want to use that in your .htaccess file prior to setting the Rewrite condition:
RewriteEngine On
RewriteCond
|
Posted by david510, 10-03-2007, 07:16 AM |
Did you add a sample redirect rule with RewriteEngine On in .htaccess?
|
Posted by activelobby4u, 10-03-2007, 07:54 AM |
With the following line in Apache conf, you have Apache server with mod_rewrite enabled.
"LoadModule rewrite_module modules/mod_rewrite.so"
"RewriteEngine On" is specfied in your website's .htaccess file which explicitly turns on mod_rewrite for that certain domain.
Please test it using a sample redirect rule in .htaccess. Like:
Options +FollowSymLinks
RewriteEngine On
RewriteRule ^.*$ /directory_name_to_redirect/ [R]
|
Posted by TylerH, 10-03-2007, 04:35 PM |
I have already have done this... in the .htaccess.. This is the code I got with the software..
|
Posted by TylerH, 10-04-2007, 01:53 PM |
Does anyone know..? Can anyone help me???
|
Posted by foobic, 10-04-2007, 08:01 PM |
What have you got for AllowOverride in httpd.conf? You need FileInfo to be able to use mod_rewrite in .htaccess.
|
Posted by TylerH, 10-05-2007, 03:14 PM |
I read everything I could find.. All I can think of is just reintall Apache.. If I do im at Verison 2.2 now should I downgrade it to 1.3.7...???
|
Posted by Steve_Arm, 10-05-2007, 03:21 PM |
AllowOverride All
exists?
|
Posted by TylerH, 10-05-2007, 04:41 PM |
No it does not exist.. Not there in the php.ini file
|
Posted by foobic, 10-05-2007, 07:14 PM |
It will exist in httpd.conf. You probably have AllowOverride None.
|
Posted by TylerH, 10-05-2007, 09:46 PM |
Yup.. Thats what I have ... So do i put it as AllowOverride All??
|
Posted by TylerH, 10-05-2007, 09:53 PM |
This is what it looks like...
|
Posted by TylerH, 10-05-2007, 09:56 PM |
Haha I Got It Thanks!
|
Add to Favourites Print this Article
Also Read