homepage Welcome to WebmasterWorld Guest from 23.20.19.131
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
Wordpress : .htaccess , redirects and rewrite rules
Whitey




msg:4649529
 10:26 pm on Feb 26, 2014 (gmt 0)

I posted this over in the Wordpress forum, but thought I'd pick up some inputs over here. Totally new to directing developers on redirect and rewrite rules, so I need help.

Our developers do not have strong server side admin skills [ we'll get there :) ]

Our developers just set up an .htaccess redirect over 15k+ pages.

Then I asked for a URL change to add in some keywords, to make them more SEO friendly.

The developer says it will take a week to change the WP structures and say half the site will need to be re created. Is there an easier way, relying on some re write rules / .htaccess or something?
[webmasterworld.com...]

 

lucy24




msg:4649567
 5:05 am on Feb 27, 2014 (gmt 0)

There's a bit of boilerplate that g1smd hauls out at times like this. It says, in brief, that mod_rewrite can't "make" an URL. All it can do is redirect people from one URL to another, or quietly rewrite from the visible URL to wherever the content really lives. Or, in this case, where the CMS thinks it lives.

You've just instituted a redirect, and now you want to redirect again?

Personal experience tells me that the search engines have already crawled your site. (Bing in particular has a genius for sniffing out mistakes that you thought you'd corrected before anyone noticed.) If you throw in another redirect, they will be asking for three different URLs for months to come. Those had better be some very, very juicy keywords.

Whitey




msg:4649633
 8:44 am on Feb 27, 2014 (gmt 0)

You've just instituted a redirect, and now you want to redirect again?

Not yet. The redirect file will need to be modified to take in the new proposed url's, but since the new site has not been deployed no redirects are in place.

I have no understanding of .htaccess so I really didn't know where this thread might head. The real problem is that the developer is worried that Wordpress, which has been set up with a different URL structure, cannot handle it without a rebuild from scratch, due to the various interplays in the development, so I loosely said server side scripting might handle it, independent from WP.

No idea really what can be done.

g1smd




msg:4649646
 10:01 am on Feb 27, 2014 (gmt 0)

URLs are created by links on pages. If you want a different URL structure it is the WordPress code that will have to modified.

Where htaccess helps is on a live site where URLs have been changed as above and mod_rewrite is then employed simply to redirect requests for old URLs to the new.

Whitey




msg:4649681
 11:46 am on Feb 27, 2014 (gmt 0)

If you want a different URL structure it is the WordPress code that will have to modified.

Yes , this backs up what the developer is saying - and complaining to me about us not getting the URL's right at the start of the build.

wilderness




msg:4649683
 12:15 pm on Feb 27, 2014 (gmt 0)

FWIW, the actual WP web pages are html and may be edited with any html-text-editor, and are easily modified

The PHP-MySQL files are an entirely different story.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved