because my website is not in english, so any word I can add , will be very vital. and the best place is the website URL then the title... I handled the title but trying now to do a change in my URL format and to include a word or two which can help me. (it helpful because I notice a new adsense ads which relevant to the word I choose).
But I still trying to figure it.
it seems your suggestion has a lack.
- Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^/]*)$ /online/$1 [QSA,L,R=301]
when I tried :www.example.net/index.php?id=4 it didn't forward to
-www.example.net/online/index.php?id=4
and the same for the main URL -www.example.net (I want it to redirect to -www.example.net/online/)
BTW I succeeded to do the following:
example.net , example.com and -www.example.com redirected to :
-www.example.net/online/
I used this code:
- Code: Select all
RewriteCond %{HTTP_HOST} !^(.*)\.example\.net$ [NC]
RewriteRule ^(.*)$ http://www.example.net/online/$1 [R=301,L]
RewriteRule ^online/(.*) /$1
and all the sub urls became relative to online/ which is perfect to me
but still -www.example.net