Affiliate Marketing
Forum Search

Reply
 
LinkBack Thread Tools Display Modes

  #1 (permalink)  
Old 02-03-06
charlton's Avatar
Registered User
 
Join Date: Jul 2004
Location: london
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
charlton is an unknown quantity at this point
  any Mod_Rewrite experts?

I am using the permalinks feature with %postname% in wordpress to make friendly urls from the posts. I put this code given by wordpress:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteBase /investing/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /investing/index.php
</IfModule>

in the .htaccess file and everything works fine UNLESS the postname, ie title also has the word "investing" (the keyword in the url and the subfolder where the wordpress files are) in it, then it won't work and you get either a wordpress 404 page or the default error page.

Is there something I can add to the code to stop this happening?

My hosting company suggested adding the main url of the site to the blog post title and that does work but then the url is not very SE friendly.

thanks in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-03-06
Registered User
 
Join Date: Mar 2004
Location: Reading, UK
Posts: 301
Thanks: 0
Thanked 0 Times in 0 Posts
dmorison is an unknown quantity at this point
Hi charlton,

I think this is being caused by Apache's "mutliview" functionality kicking in, which you can disable by adding "Options -MultiViews", so you would have:

<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine on
RewriteBase /investing/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /investing/index.php
</IfModule>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 03-03-06
charlton's Avatar
Registered User
 
Join Date: Jul 2004
Location: london
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts
charlton is an unknown quantity at this point
Hi dmorison

Thanks for your help. Unfortunately it didn't fix the problem.

I have found that it only seems to occur when this scenario happens:

sub folder: www.mydomain.com/blue-widgets

post title: blue widgets - cheaper blue widgets online

It tries to creat a url like: http://www.mydomain.com/blue-widgets...ts-online.html (the first bit of the url exactly matches the subfolder name)

If you change it to:

widgets blue etc

or cheapest blue widgets

it seems to work fine - so I'll work with that until I find out why

thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Formmail.cgi experts Jean Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 7 12-02-06 08:04 PM
Any ASP.net Security Experts Out There? accelerator Widgets, Coding, AJAX, PHP - Technology & Affiliate Marketing 5 12-02-06 01:55 PM
Affilate Experts Required on a Freelance Basis monkeydust The Affiliate Marketing Lounge 5 10-01-06 12:12 AM
AD:TECH London seeks Affiliate Marketing Experts AD:TECH London The Affiliate Marketing Lounge 19 29-09-05 09:16 AM
seo experts NaturalInstinct The Affiliate Marketing Lounge 4 02-10-03 09:13 PM


Affiliate Marketing RSS Feeds - Contact Us - Affiliate Marketing - Archive - Privacy Statement - Top

Content Relevant URLs by vBSEO 3.2.0 RC7