Forum Moderators: phranque

Message Too Old, No Replies

Modrewrite of wp conflict with other RewriteRule on file .htaccess

         

Dave83x

7:06 pm on Jan 21, 2010 (gmt 0)

10+ Year Member



Hello everyone.
I have a problem with generating modrewrite wordpress. Unfortunately wordpress RewriteRule conflict with other RewriteRule on site. example with this:

RewriteUrl ^schede/([^/]*)/([^/]*).html lista_schede.php?marca_id=$1_$2

Perhaps rewriterules of wordpress are too broad and in conflict with all the RewriteRule I use the site for other scripts outside the wordpress platform.

how can I solve this problem?

all the pages that I try to open (which have their RewriteRule containing the file. htaccess) are sent to the 404 error page of wp.

Yes, but it not work.
My file .htaccess is this:

# -FrontPage-

IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName [site.com...]
AuthUserFile /home/site/site.com/htdocs/_vti_pvt/service.pwd
AuthGroupFile /home/site/site.com/htdocs/_vti_pvt/service.grp

php_value session.save_path "/tmp"

RewriteEngine On
RewriteRule ^cellulare/([^/]+)/([^/]+)_([^/]+).html show_scheda.php?mod_rewrite=1&scheda_id=$1_$2_$3
RewriteRule ^cellulari/([^/]+)/([^/]+).html lista_schede.php?marca_id=$1_$2

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /news2/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /news2/index.php [L]
</IfModule>

Please help me! :)
thank you

jdMorgan

9:30 pm on Jan 21, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Add an [L] flag to your first two rules.

You can remove the <IfModule> container unless you want this code to fail silently on servers where mod_rewrite is not installed. Otherwise, they are a waste of byes and CPU resources.

The WP code speed can be improved quite a lot, but let's fix your main problem first...

Jim

Dave83x

10:53 pm on Jan 21, 2010 (gmt 0)

10+ Year Member



Hi JdMorgan,
thank you very much.
But it don't work.
I have edit the file htaccess in this mode:

# -FrontPage-

IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*

<Limit GET POST>
order deny,allow
deny from all
allow from all
</Limit>
<Limit PUT DELETE>
order deny,allow
deny from all
</Limit>
AuthName [site.com...]
AuthUserFile /home/site/site.com/htdocs/_vti_pvt/service.pwd
AuthGroupFile /home/site/site.com/htdocs/_vti_pvt/service.grp

php_value session.save_path "/tmp"

RewriteEngine On
RewriteRule ^cellulare/([^/]+)/([^/]+)_([^/]+).html show_scheda.php?mod_rewrite=1&scheda_id=$1_$2_$3 [L]
RewriteRule ^cellulari/([^/]+)/([^/]+).html lista_schede.php?marca_id=$1_$2 [L]

RewriteBase /news2/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /news2/index.php [L]

But nothing! all the pages that I try to open are sent to the 404 error page of wp.

Help me.
thank you :)

g1smd

11:23 pm on Jan 21, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Make sure you haven't used
Rewrite[b]Url[/b]
anywhere in your code.

Dave83x

11:29 pm on Jan 21, 2010 (gmt 0)

10+ Year Member



Hi g1smd
I did not understand your answer.
but in the index of wp I have a list of products that use this rewriterule RewriteRule ^cellulare/([^/]+)/([^/]+)_([^/]+).html show_scheda.php?mod_rewrite=1&scheda_id=$1_$2_$3 [L]

ps. Sorry for my english, but I'm italian.

thank you

jdMorgan

12:34 am on Jan 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Add an explicit exclusion to the WP rule, then.

Also exclude that rule's target as well, so that the file- and directory- exists checks are not done twice.

See several other minor corrections, clean-ups, and optimizations.


# -FrontPage-
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
#
Order deny,allow
#
<Limit GET POST>
Allow from all
</Limit>
#
<LimitExcept GET POST>
Deny from all
</Limit>
#
AuthName http://www.example.com
AuthUserFile /home/site/example.com/htdocs/_vti_pvt/service.pwd
AuthGroupFile /home/site/example.com/htdocs/_vti_pvt/service.grp
#
php_value session.save_path "/tmp"
#
RewriteEngine on
#
RewriteRule ^cellulare/([^/]+)/([^/]+)_([^/]+)\.html show_scheda.php?mod_rewrite=1&scheda_id=$1_$2_$3 [L]
RewriteRule ^cellulari/([^/]+)/([^/]+)\.html lista_schede.php?marca_id=$1_$2 [L]
#
RewriteBase /news2/
#
RewriteCond %{REQUEST_URI} !^/news2/index\.php$
RewriteCond %{REQUEST_URI} !^/cellular[ei]/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /news2/index.php [L]

You may also wish to consider excluding robots.txt, sitemap.xml, and all requested URLs ending in .gif, .jpg, .css, and .js from that final rule as well. The fewer unnecessary file- and directory-exists checks you do, the faster your site will be, and the longer your hard drive will last.

Jim

Dave83x

10:01 am on Jan 22, 2010 (gmt 0)

10+ Year Member



thanks for your willingness
but still not working :(

RewriteCond %{REQUEST_URI} !^/cellular[ei]/ Are you sure that is correct?

thank you very much.

David

jdMorgan

2:50 pm on Jan 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



> RewriteCond %{REQUEST_URI} !^/cellular[ei]/ Are you sure that is correct?

If you'd like to exclude requests for "/cellulare/" and "/cellulari/" from being rewritten to WP, then that is correct. Are you sure you understood what it means? If not, see the Regular-Expressions tutorial cited in our Apache Forum Charter. :)

You'l have t be more specific on what the remaining problems are. "It does not work" doesn't give any useful information. Completely flush (delete) your browser cache, then test, then report what URL-paths you tested, the results you expected, and the results you actually got. Include relevant entries from your server error log and server access log.

Jim

jdMorgan

5:17 pm on Jan 22, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Perhaps I misinterpreted your question...

Looking at this again, the WP exclusion needs to account for the preceding rewrites to "/show_scheda.php" and "/lista_schede.php" :


#
RewriteCond %{REQUEST_URI} !^/(news2/index¦show_scheda¦lista_schede)\.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /news2/index.php [L]

Replace all broken pipe "¦" characters in the lines above with solid pipe characters before use; Posting on this forum modifies the pipe characters.

Jim

Dave83x

12:28 pm on Jan 23, 2010 (gmt 0)

10+ Year Member



Excuse me if I can not explain well. I find it difficult to explain in English.
I Have Completely delete my browser cache. I have edit my file. Htaccess adding this:
#
RewriteCond% (REQUEST_URI) ^ / (news2/index ¦ show_scheda ¦ lista_schede) \. Php $
RewriteCond% (REQUEST_FILENAME)!-F
RewriteCond% (REQUEST_FILENAME)!-D
RewriteRule. / news2/index.php [L]

I corrected the pipe characters.

But still nothing. When I log on the main page and click on product links show_scheda I get back the 404 error page of wordpress instead of the product brochure. To explain it is as if the rewrite wordpress overwrites rewrtite of show_scheda and lista_scheda.
Thank you for your help. I hope not abandon me. :)
bye

David

g1smd

8:17 pm on Jan 23, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Remove the spaces around the pipe symbols, and around the escaped period, as there are not spaces in your URLs.

Is your URL really ".Php" cased exactly like that?

jdMorgan

10:59 pm on Jan 23, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The "-f" and "-d" tokens must also be cased exactly as shown in the code I posted above.

Do *not* feel free to change anything about mod_rewrite code syntax as described in the Apache documentation; Unlike scripting languages that allow programmers to 'style' directives in almost any way they choose, mod_rewrite requires *exact* syntax, and no such variations will be recognized.

A request for the URL-path "index.php" will *not* match a pattern of ^index\.Php$" because the case of the first "p" is different.

Jim

Dave83x

11:40 am on Jan 24, 2010 (gmt 0)

10+ Year Member



I apologize. it was my mistake.
Htaccess adding this:
# -FrontPage-
IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
#
Order deny,allow
#
<Limit GET POST>
Allow from all
</Limit>
#
<LimitExcept GET POST>
Deny from all
</Limit>
#
AuthName http://www.example.com
AuthUserFile /home/site/example.com/htdocs/_vti_pvt/service.pwd
AuthGroupFile /home/site/example.com/htdocs/_vti_pvt/service.grp
#
php_value session.save_path "/tmp"
#
RewriteEngine on
#
RewriteRule ^cellulare/([^/]+)/([^/]+)_([^/]+)\.html show_scheda.php?mod_rewrite=1&scheda_id=$1_$2_$3 [L]
RewriteRule ^cellulari/([^/]+)/([^/]+)\.html lista_schede.php?marca_id=$1_$2 [L]
#
RewriteBase /news2/
#
RewriteCond %{REQUEST_URI} !^/(news2/index¦show_scheda¦lista_schede)\.php$
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /news2/index.php [L]

but nothing yet. :(
When I log on the main page and click on product links show_scheda I get back the 404 error page of wordpress instead of the product brochure.
I did not think it was so difficult to solve this problem :(

thank you

jdMorgan

3:35 pm on Jan 24, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



OK, I'm questioning your use of "RewriteBase" in the second rule-set. Also, the "product link on your main page" should be a link to "/cellulare", and not to "/show_scheda".

Some exact information is needed:

  • When you hover over a "/news2" link, what is the URL-path shown in the browser address bar?
  • On the server, what is the exact filepath to the file or script used to serve that /news2 URL request?

  • When you hover over a "/cellare link, what is the URL-path shown in the browser address bar?
  • When you get a 404 on clicking that link, what is the entry in your server error log?

    In simple terms, the patterns in the first rule-set are not matching because your on-page link is to "/show_scheda" instead of to "/cellulare". So you may ignore those two lines of code for now, or even comment them out.

    The pattern in the second rule-set is apparently not matching -- and therefore, not excluding requests for "/show_scheda" URLs from being rewritten to WordPress, where they fail with a 404. So, the task is to discover why that pattern does not match... The pattern is specifying the wrong URL-paths, but in what way? -- What are the correct URL-paths?

    Be very sure you took action on the warning above:

    Replace all broken pipe "¦" characters in the lines above with solid pipe characters before use; Posting on this forum modifies the pipe characters.

    Jim

  • Dave83x

    4:38 pm on Jan 24, 2010 (gmt 0)

    10+ Year Member



    # When you hover over a "/news2" link, what is the URL-path shown in the browser address bar?

    http://www.example.com/news2/news-cellulari/nuovo-iphone-apple.html (example of post in wordpress with this structure permalink:
    /%category%/%postname%.html )

    # On the server, what is the exact filepath to the file or script used to serve that /news2 URL request?

    home/sitex/example.com/htdocs/news2

    # When you hover over a "/cellare link, what is the URL-path shown in the browser address bar?
    http://www.example.com/cellulare/1234/Nokia_N76.html
    (example of a link of cellulare, with this rewrite rule:
    RewriteRule ^cellulare/([^/]+)/([^/]+)_([^/]+)\.html show_scheda.php?mod_rewrite=1&scheda_id=$1_$2_$3 [L]

    the file show_scheda.php is located in the home/sitex/example.com/htdocs

    # When you get a 404 on clicking that link, what is the entry in your server error log?
    when for example I click on
    http://www.example.com/cellulare/1234/Nokia_N76.html
    or link
    http://www.example.com/cellulari/10/Nokia.html
    (this link use the rewriterule:
    RewriteRule ^cellulari/([^/]+)/([^/]+)\.html lista_schede.php?marca_id=$1_$2 [L]

    and the file lista_schede.php is located on:
    home/sitex/example.com/htdocs

    # Be very sure you took action on the warning above:
    Replace all broken pipe "¦" characters in the lines above with solid pipe characters before use; Posting on this forum modifies the pipe characters.
    I have exactly the correct pipe characters :)

    Thanks for your patience

    [edited by: jdMorgan at 2:11 pm (utc) on Jan. 25, 2010]
    [edit reason] example.com [/edit]

    jdMorgan

    2:12 pm on Jan 25, 2010 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    This is making my head hurt.

    Try this code, as a temporary file for testing:


    Options +FollowSymLinks -MultiViews
    #
    # -FrontPage-
    IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
    #
    Order deny,allow
    #
    <Limit GET POST>
    Allow from all
    </Limit>
    #
    <LimitExcept GET POST>
    Deny from all
    </Limit>
    #
    AuthName http://www.example.com
    AuthUserFile /home/site/example.com/htdocs/_vti_pvt/service.pwd
    AuthGroupFile /home/site/example.com/htdocs/_vti_pvt/service.grp
    #
    php_value session.save_path "/tmp"
    #
    RewriteEngine on
    #
    RewriteRule ^cellulare/([^/]+)/([^/]+)_([^/]+)\.html show_scheda.php?mod_rewrite=1&scheda_id=$1_$2_$3 [L]
    RewriteRule ^cellulari/([^/]+)/([^/]+)\.html lista_schede.php?marca_id=$1_$2 [L]
    #
    # Removed RewriteBase
    #
    RewriteCond %{REQUEST_URI} !^/news2/index\.php$
    # The following three rewriteconds should no longer be needed, but this is for testing
    RewriteCond %{REQUEST_URI} !^/show_scheda\.php$
    RewriteCond %{REQUEST_URI} !^/lista_schede\.php$
    RewriteCond %{REQUEST_URI} !^/cellular[ei]/
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^news2/. news2/index.php [L]

  • Request http://www.example.com/cellulare/1234/Nokia_N76.html
    You should see the output of the script show_scheda.php called with parameters "mod_rewrite=1&scheda_id=$1234_Nokia_N76"

  • Request http://www.example.com/cellulari/10/Nokia.html
    You should see the output of the script lista_schede.php called with parameters "marca_id=10_Nokia"

  • Request http://www.example.com/news2/news-cellulari/nuovo-iphone-apple.html
    You should get the WordPress page produced by the script at /news2/index.php

    If you get a 404 or any other server error, please include the relevant entry from your server error log.

    If you still have problems, please copy my three-test list above, and add comments to each test description about what actually happened.

    Completely flush (delete) your browser cache before testing after you upload any modified code.

    Jim

  • Dave83x

    8:41 pm on Jan 25, 2010 (gmt 0)

    10+ Year Member



    Ok everything works!
    There are no errors. and returns all pages correctly!

    I'm sorry for the headache. But the solution you found.

    Heartfelt thanks

    I have a small request.
    If I wanted to install wordpress in the future in the root directory.
    What should only change the htaccess file?

    thanks

    David :)

    jdMorgan

    1:04 am on Jan 26, 2010 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    > If I wanted to install wordpress in the future in the root directory, what should change in the htaccess file?

    Take "news2" out of the right side of the last RewriteRule if you want to keep "news2" as a "virtual subdirectory," or take "news2" out of both sides of the last RewriteRule if you do not want to keep that virtual subdirectory.

    Jim

    Dave83x

    9:48 am on Jan 26, 2010 (gmt 0)

    10+ Year Member



    Thank you.
    I cleaned the code in this way:

    Options +FollowSymLinks -MultiViews
    #
    # -FrontPage-
    IndexIgnore .htaccess */.?* *~ *# */HEADER* */README* */_vti*
    #
    Order deny,allow
    #
    <Limit GET POST>
    Allow from all
    </Limit>
    #
    <LimitExcept GET POST>
    Deny from all
    </Limit>
    #
    AuthName http://www.example.com
    AuthUserFile /home/site/example.com/htdocs/_vti_pvt/service.pwd
    AuthGroupFile /home/site/example.com/htdocs/_vti_pvt/service.grp
    #
    php_value session.save_path "/tmp"
    #
    RewriteEngine on
    #
    RewriteRule ^cellulare/([^/]+)/([^/]+)_([^/]+)\.html show_scheda.php?mod_rewrite=1&scheda_id=$1_$2_$3 [L]
    RewriteRule ^cellulari/([^/]+)/([^/]+)\.html lista_schede.php?marca_id=$1_$2 [L]
    #
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . news2/index.php [L]

    And everything works!
    There are no errors. and returns all pages correctly!

    is important to add this item at top:
    Options +FollowSymLinks -MultiViews

    Thank you very very much :)
    sorry for all :D

    jdMorgan

    2:50 pm on Jan 26, 2010 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    On the last rule, you have removed an exclusion which has a great effect on your server performance.

    The first RewriteCond on the last rule should be


    RewriteCond %{REQUEST_URI} !^/news2/index\.php$

    in order to avoid unnecessary file- and directory-exists checks after the request has already been rewritten to /index.php.

    On some sites, adding this one line can noticeably speed up access to the site.

    And as mentioned here or in other threads on this subject, you may wish to exclude other "well-known" requests which *you know* should not be rewritten to WordPress. Each of these exclusions will give a performance improvement -- some small, but certainly not negligible. Replace the RewriteCond above with something like


    RewriteCond !((\.(gif¦jpe?g¦png¦ico¦css¦js))¦^/news2/index\.php¦^/robots\.txt¦/sitemap\.xml)$

    As usual, replace the broken pipe characters with solid ones before use.

    Once you've tested that, you may wish to add domain and resource canonicalization redirects as discussed in many other threads here to prevent duplicate-content issues and to "focus your branding."

    Jim

    Dave83x

    11:13 am on Jan 27, 2010 (gmt 0)

    10+ Year Member



    Thanks for everything, many thanks.

    David

    caruso_g

    11:49 am on Jan 27, 2010 (gmt 0)

    10+ Year Member



    jdMorgan,

    I found this topic really interesting since I have the exact same problem with WP.
    I didn't understand how to exclude WP rewrite rules to apply just custom rules first.

    Can I post my .htaccess code in these topic or should I start a new one?

    Anyway, thanks a lot for your efforts in helping us, your time is really appreciated.

    jdMorgan

    3:53 pm on Jan 27, 2010 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    A new thread with a reference link back to this one would be most appropriate.

    Please don't post your entire .htaccess file unless this is specifically needed and requested. Such long posts deter people from reading them, and are much less likely to get answered.

    Jim

    caruso_g

    5:45 pm on Jan 27, 2010 (gmt 0)

    10+ Year Member



    Hi Jim, thanks a lot. I created a new post here [webmasterworld.com].
    I also removed not needed code from the .htaccess file.

    lukeMV

    3:34 pm on Apr 12, 2010 (gmt 0)

    10+ Year Member



    Awesome post and solution... so fortunate to have found it. I too have a question very similar to this.

    I have created a page in my root directory that pulls information from a separate mySQL database (not the WordPress database). The page works perfectly when I use the $_GET call from the URL (ie: page.php?id=123 will pull the mySQL query with id "123").

    rewriterule ^([^-]+)-([^&]+)\.html$ /page.php?id=$1&id=$2 [L]
    rewritecond %{http_host} ^myURL.com [nc]
    rewriterule ^(.*)$ http://www.myURL.com/$1 [r=301,nc]


    When using this on a non-wordpress site, it works fine (myURL.com/Entry_Name-123.html) but with WordPress, it is breaking the WordPress pages.

    I want to keep this page.php in the root directory (outside of a wordpress theme) to avoid other problems.

    As a point of reference, this is the original WordPress code that I want to combine with the "above" code:


    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    # END WordPress



    When I simply combine them, I get errors. Thoughts on making them work?

    g1smd

    4:36 pm on Apr 12, 2010 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



    Move the very first rewrite so that it is listed after the non-www to www redirect.

    Upgrade the non-www to www canonical redirect rule using the oft-posted code found in this forum.

    Upgrade your Wordpress rewrite code to the much more efficient version posted here several times in recent weeks: [webmasterworld.com...]

    lukeMV

    7:04 pm on Apr 12, 2010 (gmt 0)

    10+ Year Member



    I just tried the following, based on what I think you meant:


    <IfModule mod_rewrite.c>
    # BEGIN WordPress
    #
    RewriteEngine on
    #
    # Unless you have set a different RewriteBase preceding this point,
    # you may delete or comment-out the following RewriteBase directive
    # RewriteBase /
    #
    # if this request is for "/" or has already been rewritten to WP
    RewriteCond $1 ^(index\.php)?$ [OR]
    # or if request is for image, css, or js file
    RewriteCond $1 \.(gif|jpg|ico|css|js)$ [NC,OR]
    # or if URL resolves to existing file
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    # or if URL resolves to existing directory
    RewriteCond %{REQUEST_FILENAME} -d
    # then skip the rewrite to WP
    RewriteRule ^(.*)$ - [S=1]
    # else rewrite the request to WP
    RewriteRule . /index.php [L]
    #

    rewriterule ^([^-]+)-([^&]+)\.html$ /scenes.php?id=$1&id=$2 [L]
    rewritecond %{http_host} ^myURL.com [nc]
    rewriterule ^(.*)$ ht\tp://www.myURL.com/$1 [r=301,nc]


    # END wordpress

    </IfModule>



    it killed the site, now just getting a 500 error. What am I missing?

    lukeMV

    9:06 pm on Apr 12, 2010 (gmt 0)

    10+ Year Member



    So you know, I was able to resolve the issue with your assistance. I don't know what the problem was, but the final .htaccess code is:


    <IfModule mod_rewrite.c>
    RewriteRule ^([^-]+)-([^&]+).html /scenes.php?id=$1&id=$2 [L]
    </IfModule>


    # BEGIN WordPress
    RewriteEngine on
    #
    # Unless you have set a different RewriteBase preceding this
    # point, you may delete or comment-out the following
    # RewriteBase directive:
    RewriteBase /
    #
    # if this request is for "/" or has already been rewritten to WP
    RewriteCond $1 ^(index\.php)?$ [OR]
    # or if request is for image, css, or js file
    RewriteCond $1 \.(gif|jpg|css|js|ico)$ [NC,OR]
    # or if URL resolves to existing file
    RewriteCond %{REQUEST_FILENAME} -f [OR]
    # or if URL resolves to existing directory
    RewriteCond %{REQUEST_FILENAME} -d
    # then skip the rewrite to WP
    RewriteRule ^(.*)$ - [S=1]
    # else rewrite the request to WP
    RewriteRule . /index.php [L]
    #
    # END wordpress

    g1smd

    9:38 pm on Apr 12, 2010 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



    Two problems.

    You have
    id=
    twice in your call to the script.

    The non-www to www redirect seems to have gone missing.

    jdMorgan

    2:25 pm on Apr 13, 2010 (gmt 0)

    WebmasterWorld Senior Member 10+ Year Member



    And as posted very early in this thread, you may also remove the <IfModule> container, unless you need this code to fail silently on servers where mod_rewrite is not available...

    Jim
    This 37 message thread spans 2 pages: 37