Forum Moderators: phranque
1) All non www pages to look as www pages
2) the dynamic url to look as statics.
My present .htaccess files lets me take care of the first problem but i cant get the second one cracked. ( I am not basically a apache experts i guess )
My Present .htaccess file has teh following rewrites
---------------------------------
RewriteEngine on
RewriteCond %{HTTP_HOST} ^myexample\.com
RewriteRule ^(.*)$ [myexample.com...] [R=301,L]
---------------------
Now, the above code works fine for redirecting the non www pages to wwwpages
My present URLs are
1) [myexample.com...]
I wish that to be shown as [myexample.com...]
2) [myexample.com...]
I wish this one to be shown as
[myexample.com...]
What lines should be added to my present .htaccessfile for the above.
Thanks for your help.
First, I recommend visiting the Apache Library [webmasterworld.com] and Forum Charter [webmasterworld.com] to get a better understanding of mod_rewrite.
Second, there should be some useful information in this thread [webmasterworld.com].
Finally, give use something you have tried that is not working and we will help you get it done -- we try not to just write code for people.
If you need more starting points, you might try your favorite SE with something like this:
search engine friendly url site:webmasterworld.com/forum92/
Hope this helps and gives you some ideas.
Justin