Subdomain rediret to folder?
-
I had to recently reinstall my blog and have now ran into problems insuring that incoming links are pointing to the correct files.
I installed it in the subdomain blog. So the URL for some income links go to https://blog.domainname.com/posturl
Some of the incoming links have gone to https://domainname.com/blog/posturl
I want the articles to be accessible from both the folder and the subdomain.
Any time I attempt to resolve this issue it either ruins my menu structure and people can’t find the posts from inside wordpress, or it leads to 404 error or 500 server errors.
Could someone point out what I need to do in addition to the following which keeps my menu structure and correctly pulls up the articles under https://domainname.com/blog/posturl/
This is what I have in my htaccess file in the main folder.
Options +FollowSymLinks RewriteEngine on <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L] </IfModule>
This is what I have in my htaccess file in the blog folder:
# BEGIN WordPress <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /blog/ RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /blog/index.php [L] </IfModule> # END WordPress
I want this article https://creativevisionbooks.com/blog/2007/12/20/christmas-mouse-goes-to-the-movies-a-literary-tradition/ , and others, to be accessible at https://blog.creativevisionbooks.com/2007/12/20/christmas-mouse-goes-to-the-movies-a-literary-tradition/
as well as the first method.I sure appreciate any assistance you can give me as I am missing out on quite a bit of traffic.
Leisa
- The topic ‘Subdomain rediret to folder?’ is closed to new replies.