Forum Moderators: phranque
I have a problem with Wordpress MU installation, I have choose to use the www.domain.com/subdirectory_blog way instead of [subdomain_blog.domain.com...] to avoid dns problems...
Now what i want to do is when a user types in browser subdomain_blog.domain.com to show up the files inside www.domain.com/subdirectory_blog (the subdomain being virtual).
All this to be done in .htaccess file...
How can I do this?
Thanks!
Do you need a redirect or a rewrite?
That is, is the URL that the user requests going to stay the same in the browser (that is a rewrite), or is the URL in the browser going to change (that is a redirect)?
Whatever you do, the on-page links generated by the script will need to show subdomain_blog.domain.com URLs.
Please also refer to previous threads in the forum, as this question has been asked every day this week! It is a popular topic.
I'm really not an expert to these things and i cannot addapt what i found in other treads :) Can anyone help with the htaccess code?
Thank You!
The blog script will need to be modified to produce the URLs you want to "see", placed in the links on the pages of the blog.
The .htaccess routines will then translate the URL that is requested when one of those links is clicked, into a filepath on the server to get it from.
As I said above, example code is given several times per week here in this forum. Check the previous threads, modify those examples, and then post back here if you get stuck.