Forum Moderators: phranque
Again, i have an problem with the URL generated by a CMS.
Normaly a user enter a simple domain name like www.mydomain.ch
a rule should to this: If no parameter was entered, add a parameter. eg. www.mydomain.ch will be www.mydomain.ch?<parameter> or in the future www.mydomain.ch/<parameter>
Right now i made a solution with ColdFusion based redirect.
So, I heard that search engines doesn't like redirects 301's.
I'm sure, that mod_rewrite can handle this without a redirect-thing.
Any idea?
Thank you
In httpd.conf:
RewriteCond %{QUERY_STRING} ^$
RewriteRule [b]^/$[/b] /?parameter [L]
In .htaccess:
RewriteCond %{QUERY_STRING} ^$
RewriteRule [b]^$[/b] /?parameter [L]
Jim