Apache mod rewrite .htaccess problem?

The last RewriteRule is redirecting your request to blog to index. Php you should add a RewriteCond to check if the request is on the blog folder.

The last RewriteRule is redirecting your request to /blog/ to index. Php, you should add a RewriteCond to check if the request is on the blog folder. RewriteCond %{REQUEST_URI}!

^/blog/.

Thanks for the response. My understanding is that the conditionals I've got in there should mean it never gets to the rewrite rule if the file/folder exists. Obviously this isn't the case, do you know why?

In any case I get the following when using your addition: codeThe requested URL /blog. Php was not found on this server. /code – Simon Stevens Jun 15 '10 at 13:49.

I managed this using the code below, for some reason the conditionals that were suggested don't work (I HATE . Htaccess) RewriteEngine On RewriteRule ^(blog) - L RewriteCond %{SCRIPT_FILENAME}! \.(gif|jpg|png)$ RewriteCond %{REQUEST_FILENAME}!

-d RewriteCond %{REQUEST_FILENAME}! -f RewriteRule ^(.*)/(.*)/$ /$1_$2. Php L RewriteRule ^(.*)/$ /$1.

Php L.

Try this RewriteEngine On RewriteBase / RewriteRule ^detail-id-(0-9+)\. Htm$ detail. Php?

Id=$1.

Thanks for the reply, but still no luck... – Starboy Sep 1 at 19:31 Please show me an example URL that you are trying. And you are entering this in your . Htaccess with +AllowOveride set in your http config right?

If you aren't, add it and restart your apache service. – Layke Sep 1 at 19:32 Example: localhost/detail. Php?

Id=15 – Starboy Sep 1 at 19:34 And Layke are you referring to the Allow in the httpd. Conf? If so, I did set that – Starboy Sep 1 at 19:36 1 Starboy, you mean you are trying localhost/detail-id-15.

Html right? – Layke Sep 1 at 19:41.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions