![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Feb 2001
Posts: 3,382
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
Confirmed User
Industry Role:
Join Date: Dec 2007
Location: Ontario
Posts: 4,235
|
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 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 | |
Confirmed User
Join Date: Feb 2001
Posts: 3,382
|
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Industry Role:
Join Date: Aug 2002
Posts: 55,372
|
if you have the same strucure setup in the xhtml version why do you need to rewrite?
__________________
Since 1999: 69 Adult Industry awards for Best Hosting Company and professional excellence. ![]() WP Stuff |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Feb 2001
Posts: 3,382
|
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. |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Confirmed User
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
|
Quote:
__________________
This post is endorsed by CIA, KGB, MI6, the Mafia, Illuminati, Kim Jong Il, Worldwide Ninjas Association, Klingon Empire and lolcats. Don't mess around with it, just accept it and embrace the truth |
|
![]() |
![]() ![]() ![]() ![]() ![]() |