Re: rewrite rule on apache2 .htaccess file (SOLVED)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Vincenzo!
Thank you for this advise as well....

By the way, I have added you in skype if you allow me.


Tamer

On 07/22/13 18:00, Vincenzo D'Amore wrote:
> Hi,
> 
> happy to hear you have figured out at last :)
> 
> For the future, if you're in trouble trying to understand what's wrong
> in your rewrite, if you can, try to enable RewriteLog it will help
> really a lot.
> 
> Best regards,
> Vincenzo
> 
> 
> 
> 2013/7/21 Tamer Higazi <th982a@xxxxxxxxxxxxxx
> <mailto:th982a@xxxxxxxxxxxxxx>>
> 
>     Solved!
> 
>     My rewrite rules now look like this:
> 
>     RewriteEngine on
>     RewriteCond %{REQUEST_URI} !/static/
>     RewriteRule ^(.+)\.(css|img|fonts|js)$ /static/$1 [L]
> 
>     RewriteCond $1 !^(index\.php|images|robots\.txt|static)
>     RewriteRule ^(.*)$ /index.php/$1 [L]
> 
> 
> 
>     On 07/21/13 20:34, Tamer Higazi wrote:
>     > Hi Vincenzo!
>     >
>     > My rewrite rule now lookes like this:
>     >
>     > RewriteEngine on
>     >
>     > RewriteRule ^/(css|js|fonts)(/.*)?$ /static$2 [L]
>     > RewriteRule ^/(.*)$ /index.php/$1 [L]
>     >
>     > and now nothing works :(
>     >
> 
> 
>     ---------------------------------------------------------------------
>     To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
>     <mailto:users-unsubscribe@xxxxxxxxxxxxxxxx>
>     For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx
>     <mailto:users-help@xxxxxxxxxxxxxxxx>
> 
> 
> 
> 
> -- 
> Vincenzo D'Amore
> email: v.damore@xxxxxxxxx <mailto:v.damore@xxxxxxxxx>
> skype: free.dev
> mobile: +39 349 8513251


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx





[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux