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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 07-26-2011, 09:45 AM   #1
kush
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.
kush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-26-2011, 10:07 AM   #2
moeloubani
Confirmed User
 
moeloubani's Avatar
 
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
moeloubani is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-26-2011, 10:51 AM   #3
kush
Confirmed User
 
Join Date: Feb 2001
Posts: 3,382
Quote:
Originally Posted by moeloubani View Post

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

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.

Last edited by kush; 07-26-2011 at 10:59 AM..
kush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-26-2011, 11:46 AM   #4
fris
Too lazy to set a custom title
 
fris's Avatar
 
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
fris is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-26-2011, 12:22 PM   #5
kush
Confirmed User
 
Join Date: Feb 2001
Posts: 3,382
Quote:
Originally Posted by fris View Post
if you have the same strucure setup in the xhtml version why do you need to rewrite?
I bought the original website because it was established with some decent backlinks.

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.
kush is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 07-26-2011, 01:22 PM   #6
harvey
Confirmed User
 
harvey's Avatar
 
Industry Role:
Join Date: Jul 2001
Location: 127.0.0.1
Posts: 9,266
Quote:
Originally Posted by kush View Post
I bought the original website because it was established with some decent backlinks.

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.
and why don't you simply use WP and keep the links as they are while getting advantage of the many features of WP?
__________________
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
harvey is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.