Re: htaccess problem

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

 



RewriteCond %{HTTP_HOST} !^www.mysite.com$ [NC]
RewriteRule ^(.*)$ http://www.mysite.com/$1 [L,R=301]

RewriteRule ^([^/\.]+)/([^/\.]+)/?$ index.php?cat=$1&mbi=$2 [L]

Something like this.
HTH

On Thu, Apr 30, 2009 at 9:32 AM, gopi nath <gopivsb@xxxxxxxxxxx> wrote:
>
>
> hi Experts,
>
> my .htaccess ,
>
> RewriteEngine ON
> #Options FollowSymLinks
> RewriteOptions Inherit
>
> RewriteBase /
>
> RewriteCond %{HTTP_HOST} ^mysite\.com$ [NC]
> RewriteRule ^(.*)$ http://www.mysite.com/ [NC,R=301]
> RewriteRule ^(.*)$ index.php?cat=$1&mbi=$2 [NC]
>
> error in my site
> i used dynamic Friendly url . so wat can i do? any idea. or suggestion.
> i need end of the string not used in / or without / .
>
> Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition
> http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox
>
> [Non-text portions of this message have been removed]
>
> 

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux