Do you have mod_rewrite enabled?
Do you have mod_rewrite enabled?
Yes. mod_rewrite is enabled in .htaccess.
Send your friends and site visitors to GlowHost and get $125 plus bonus!
GlowHost Affiliate Program | Read our Blog | Follow us on X |
hmm, Can you doublecheck? because i can't seem to find any mod_rewrite installed when i used phpinfo to check.
you can see it here: [removed]
Last edited by Matt; 07-22-2006 at 03:59 PM.
mod_rewrite is an Apache module not PHP.
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
So it won't show up in your php info.
Last edited by Matt; 07-22-2006 at 04:01 PM.
Send your friends and site visitors to GlowHost and get $125 plus bonus!
GlowHost Affiliate Program | Read our Blog | Follow us on X |
some sites say you can check it by going through the phpinfo:
I got this from: http://www.workingwith.me.uk/article...ng/mod_rewrite
and this one at: http://enarion.net/web/apache/htacce...write-on-suse/For the purpose of this article, I’m going to assume that you don’t have access to view or edit the Apache server httpd.conf file, so the easiest way to check whether the mod_rewrite module is installed will be to look on your phpinfo page. If you’ve not already created one of these for yourself, just copy and paste the following code into an new text file using your favourite text editor, save it as phpinfo.php, and upload it to your server:
<?php phpinfo(); ?>
Load that page up in your web browser, and perform a search for “mod_rewrite”. All being well, you’ll find it in the “Apache loaded modules” section of the page. If it isn’t there, you’ll have to contact your hosting company and politely ask them to add it to the Apache configuration.
Check if mod_rewrite is installed and integrated in Apache
You can check this e.g. with the following php file. Create a file in your document root of your webserver (default on SuSE: /srv/www/htdocs) and copy the following content into this file:
<?php phpinfo(); ?>
When you view this file with your browser, search for rewrite - you should find one entry. If not - check if you did all steps 1 to 3.
Last edited by soulbadguy; 07-23-2006 at 09:52 AM.
Its installed. It is news to me (or I have forgotten) that it would appear in php.info unless those sites are referring to people that have Apache loaded as a module and not a CGI. We have our PHP loaded as a CGI....
Either that or possibly another OS or custom PHP I suppose I'd have to research it some more....
The second quote is wrong because if you search for "rewrite" you would also come up with url_rewriter.tags
However, the point being to try adding some rewrite rules to your .htaccess file and you will see that the rewrite engine is enabled.
Last edited by Matt; 07-23-2006 at 12:25 PM.
Send your friends and site visitors to GlowHost and get $125 plus bonus!
GlowHost Affiliate Program | Read our Blog | Follow us on X |
You will note that in phpinfo, the section on Apache Modules is blank, which is where one would usually see that the rewrite module is loaded. However, It is easily verified as Matt said by actually trying it.
I just tried this on my site, and it redirects ANY request to the image specified.
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*) http://www.sellersourcebook.com/memb...ch/deleted.jpg
oh, thanks for telling me about that. I have to say you guys are very fast with replying. thanks again.