.htaccess questions
First question than I been trying to re-write some url's this is what i have so far
Code:
RewriteRule /blog/(.*) /my_tutorials$1 [NC] Anyone any idea why this will not work for me? Am trying to rewrite three urls /blog /blogs /entries Second question I run a site with mass image's (alot very lot) Is there something i should add in my htaccess to help with this ive read about headers or something like that atm all I have is this in it at the mo Note this is not the same htaccess as the one above ^_^ Code:
<IfModule mod_dir.c> |
You need slashes. Or was this a typo?
Code:
RewriteRule /blog/(.*) /my_tutorials/$1 [NC] |
Quote:
just tryed it with them still the same Thanks tho :) |
Test this variants:
Code:
RewriteRule blog/(.*) /my_tutorials/$1 [NC] |
Quote:
|
So, post your directory structure, Apache configuration and version. And what exactly error web browser give you? You can also switch on a logging of mod_rewrite.
|
Hey i found out there was some rewrite on allready ><
/index.php?blogs/ /index.php?blog/vodkaholic.1/ /index.php?entries/test.1/ /index.php?blogs/create-entry These are the unchanged url's if you still need the above I will have a look for the info for you Thank's for helping |
Well, ealiers entries should not affect subsequent rewrites, as rewrite engine start again with the new URL, however I had some annoying inconsistents with Apache v1.3. If you do not need the old rewrite, replace them with the new.
|
All times are GMT -5. The time now is 07:25 AM. |