Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3495280
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T12:06:28+00:00 2026-05-18T12:06:28+00:00

I have the following system: Windows Server ’03 IIS 6 (shoot me) PHP 5.2.14

  • 0

I have the following system:

Windows Server ’03
IIS 6 (shoot me)
PHP 5.2.14
Wordpress 3.0.1
WPML 1.8.1.2

I’ve added WordPress to an existing high-traffic site, in a directory we’ll call

http://thehost/wordpress/

For mod_rewrite-like features, I’m using Helicon’s ISAPI_Rewrite 3.1.0.76. I’m using it to enable “pretty” permalinks in the WordPress install. The single rule is this:

RewriteRule ^/wordpress/(?!index.php)(?!wp)([^.]*)$ /wordpress/index.php/$1 [I,L]

I need to add another rule, however, and neither of my dual strategies of thinking it through and bashing it through has borne fruit.

My site is a fully bilingual one. There are no pages that aren’t under one of the two following subdirectories:

http://thehost/en/ for English, and

http://thehost/sp/ for Spanish.

This is a convention I aim to maintain, even for the WordPress install. I currently have a somewhat hacked version of WPML (WordPress Multilingual plugin) operating, and it works such that all pages and posts—regardless of the language—include either the /en/ or the /sp/ in the URL. This has led me to believe I am achingly close—perhaps only one RewriteRule away!—to making my WordPress URLs conform to the same URL convention as the rest of my site. My problem though, as described, is that I can’t quite get it to work.

So, if I have this URL somewhere in my WordPress install:

http://thehost/wordpress/en/2010/08/omg-this-post-is-in-english/

how can I transform it to

http://thehost/en/wordpress/2010/08/omg-this-post-is-in-english/

while not losing WordPress’s permalinks? I’ve managed to swap the /en/ to its correct location (^/en/wordpress/(.*) /wordpress/en/$1), but I can’t get the two rules to play nicely together. That’s my problem. Well, that and a few others not appropriate for stackoverflow.com.

Thanks for your time.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T12:06:29+00:00Added an answer on May 18, 2026 at 12:06 pm

    Try chaining the rules with the “C” Flag. Example:

    RewriteRule ^/en/wordpress/(.*) /wordpress/en/$1 [C]
    RewriteRule ^/wordpress/(?!index.php)(?!wp)([^.]*)$ /wordpress/index.php/$1 [I,L]
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following LINQ query: List<string> Types = (List<string>)Directory.GetFiles(@C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727) .Where(x => System.IO.Path.GetFileNameWithoutExtension(x).Contains(Microsoft)) .ToList<string>();
I have a PHP app running happily on the following system: web app: PHP
I have the following configuration: Visual Studio Team System 2008 SQL Server Developer Edition
I have a system with windows server 2008 , Apache httpd 2.2 and trac
I have the following classes: using System; using System.Windows.Forms; namespace FastEyeControl { public partial
i have the following Environment: SharePoint server 2010 Windows server 2008 R2 SQL Server
I have the following code. In windows server 2008, the program is correct and
We have an Windows 2008 server with IIS 7 to test sites we develop
I have an ASP.NET MVC 1.0 application running on Windows Server 2003 IIS 6.0.
I have following foreach-loop: using System.IO; //... if (Directory.Exists(path)) { foreach(string strFile in Directory.GetFiles(path,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.