Help SMF by rating it on HotScripts.com, The PHP Resource Index, alexa.com and Softaculous
RewriteEngine onRewriteCond %{HTTP_HOST} ^internetfazoni.com$RewriteRule ^/?$ "http\:\/\/www\.internetfazoni\.com\/" [R=301,L]
RewriteEngine onrewritecond %{http_host} ^internetfazoni.com [nc]rewriterule ^(.*)$ http://www.internetfazoni.com$1 [r=301,nc]RewriteCond %{REQUEST_URI} ^/index\.php$
Try this.Code: [Select]RewriteEngine onrewritecond %{http_host} ^internetfazoni.com [nc]rewriterule ^(.*)$ http://www.internetfazoni.com$1 [r=301,nc]RewriteCond %{REQUEST_URI} ^/index\.php$
RewriteEngine onrewritecond %{http_host} ^internetfazoni.com [nc]rewriterule ^(.*)$ http://www.internetfazoni.com$1 [r=301,nc]
RewriteEngine OnRewriteCond %{HTTP_HOST} ^internetfazoni\.com [NC]RewriteRule ^(.*)$ http://www.internetfazoni.com/$1 [R=301,L]
Code: [Select]RewriteEngine onrewritecond %{http_host} ^internetfazoni.com [nc]rewriterule ^(.*)$ http://www.internetfazoni.com$1 [r=301,nc]You don't strictly need that last RewriteCond in there.
You're missing a /, and don't need NC on the rewrite rule, as . matches any case.Code: [Select]RewriteEngine OnRewriteCond %{HTTP_HOST} ^internetfazoni\.com [NC]RewriteRule ^(.*)$ http://www.internetfazoni.com/$1 [R=301,L]
Put the three lines to redirect to www before the SEO/SEF lines. It looks like you're converting from SEO to non-SEO form, and then adding the www., which means the non-SEO form (dynamic) URL will be seen by the user. Hopefully that will fix the topic name appearing instead of the topic number.
Add the www-change code before any lines for SEO. The easiest thing is to put them at the very beginning of the .htaccess file.
Put this:Code: [Select]RewriteEngine OnRewriteCond %{HTTP_HOST} ^internetfazoni\.com [NC]RewriteRule ^(.*)$ http://www.internetfazoni.com/$1 [R=301,L]At the top of the .htaccess file..htaccess file should read as:RewriteEngine OnRewriteCond %{HTTP_HOST} ^internetfazoni\.com [NC]RewriteRule ^(.*)$ http://www.internetfazoni.com/$1 [R=301,L]blah blahblah blah
I'm afraid I'm confused now. The link works just fine for me. If you are trying to say the link you posted isn't working.If that is the case, it seems that it might be a problem on your end.As a side note, it's not polite to type in all caps.
RewriteEngine OnRewriteCond %{HTTP_HOST} !^www\. [NC]RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]
To redirect 'non-www' urls I'm using always this code in htaccess file:Code: [Select]RewriteEngine OnRewriteCond %{HTTP_HOST} !^www\. [NC]RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]never had any problems