![]() |
wordpress site to html - moving pages without extensions ex: http://site.com/page
I need help converting a small wordpress site with an unfavorable URL structure to a straight html site, while maintaining the original URL structure.
There are several pages on the current wordpress based site that have urls like the following: http://site.com/page http://site.com/another-post http://site.com/no-trailing-slash-or-extention As an extra quirk, the original site redirects the www. version to non-www. and I have this in my .htaccess to maintain that redirect: RewriteEngine On RewriteCond %{HTTP_HOST} ^www.site.com RewriteRule (.*) http://site.com/ [R=301,L] I'm stuck with how to handle this, can't find an easy answer anywhere. Thanks. |
two things, if you want it to redirect to the www. version then go to your settings in WP and go to General and change those to www. where it has the location of the site (both places)
tada now it redirects to original as to how you can make it so blabla.com/page goes to blabla.com/page.html you just need to make a folder called page so blabla.com/page/index.html that way when someone goes to blabla.com/page they will see only blabla.com/page but they will be at blabla.com/page/index.html good luck |
Quote:
I tried that already, and when you visit blabla.com/page with the file/folder setup you described above, it redirects to http://blabla.com Your way may work, but I think I would have to tweak the RewriteCond in the .htaccess code. And I'm not sure what "tweak" to do the the .htaccess if this is the case. |
if you have the same strucure setup in the xhtml version why do you need to rewrite?
|
Quote:
The original site had a rewrite through wordpress to make the site go from http://www.site.com to http://site.com. To preserve the integrity of the backlinks to existing pages, I am making my new version of the site following this original pattern. I suppose I could do a permanent 301 redirect on those original existing inner pages to work around the problem. |
Quote:
|
All times are GMT -7. The time now is 09:50 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123