This forum has been moved here:
Helicon Tech Community Forum

  Active TopicsActive Topics  Display List of Forum MembersMemberlist  HelpHelp   RegisterRegister  LoginLogin
ISAPI_Rewrite 2.x (Forum Locked Forum Locked)
 Helicon Tech : ISAPI_Rewrite 2.x
Subject Topic: Wordpress Permalinks for ISAPI Rewrite 2
Author
Message |
svetlana
Newbie


Joined: 15 September 2010
Location: Italy
Posts: 13
Posted: 16 September 2010 at 3:00am

Now it's working properly but the other links in the page give me error 404
look at:
http://www.etineris.net/it/blog/2010/09
http://www.etineris.net/it/blog/category/senza-categoria
http://www.etineris.net/it/blog/feed
http://www.etineris.net/it/blog/comments/feed
http://www.etineris.net/it/blog/info

Thank you so much for your kind help



__________________
svetlana
Back to Top Visit svetlana's Homepage
 
svetlana
Newbie


Joined: 15 September 2010
Location: Italy
Posts: 13
Posted: 16 September 2010 at 3:49am

Could you suggest me a solution.
Thank you



__________________
svetlana
Back to Top Visit svetlana's Homepage
 
svetlana
Newbie


Joined: 15 September 2010
Location: Italy
Posts: 13
Posted: 16 September 2010 at 7:11am

Anton,
sorry if i disturb you again, have you news about this issue?
Thank you again




__________________
svetlana
Back to Top Visit svetlana's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 16 September 2010 at 8:03am

Let's try it like this:

RewriteRule /it/blog/(?!index\.php)(.+) /it/blog/index.php/$1 [I,L]

__________________
Regards,
Anton
Back to Top
 
svetlana
Newbie


Joined: 15 September 2010
Location: Italy
Posts: 13
Posted: 16 September 2010 at 8:14am

Anton,
now all pages run fine but the layout of the site is changed, look at http://www.etineris.net/it/blog/
How can i solve that?
Thank you




__________________
svetlana
Back to Top Visit svetlana's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 16 September 2010 at 9:05am

You should extend the list after ?! specifying all physical files/folders in blog folder:

RewriteRule /it/blog/(?!(?:index\.php|css|js|script|anything|else|you|may|have))(.+) /it/blog/index.php/$1 [I,L]

__________________
Regards,
Anton
Back to Top
 
svetlana
Newbie


Joined: 15 September 2010
Location: Italy
Posts: 13
Posted: 16 September 2010 at 9:33am

The login page doesn't wotk now, it give me error 404
http://www.etineris.net/it/blog/wp-login.php



__________________
svetlana
Back to Top Visit svetlana's Homepage
 
svetlana
Newbie


Joined: 15 September 2010
Location: Italy
Posts: 13
Posted: 16 September 2010 at 11:03am

Anton, i tried to modify that but nothing better, look at
RewriteRule /it/blog/(?!(?:index\.php|wp-admin/|wp-content/|wp-includes/|wp-activate\.php|wp-app\.php|wp-atom\.php|wp-blog-header\.php|wp-comments-post\.php|wp-commentsrss2\.php|wp-config\.php|wp-cron\.php|wp-feed\.php|wp-links-opml\.php|wp-load\.php|wp-login\.php|wp-mail\.php|wp-pass\.php|wp-rdf\.php|wp-register\.php|wp-rss2\.php|wp-rss\.php|wp-settings\.php|wp-signup\.php|wp-trackback\.php|xmlrpc\.php|))(.+) /it/blog/index.php/$1 [I,L]



__________________
svetlana
Back to Top Visit svetlana's Homepage
 
svetlana
Newbie


Joined: 15 September 2010
Location: Italy
Posts: 13
Posted: 16 September 2010 at 11:22am

Anton, could you please help me
Thank you so much
 

__________________
svetlana
Back to Top Visit svetlana's Homepage
 
syoung68
Newbie


Joined: 26 July 2010
Posts: 11
Posted: 16 September 2010 at 11:59am

svetlana try adding this line first...

RewriteRule /wp-(.*) /wp-$1 [L]
Back to Top
 
svetlana
Newbie


Joined: 15 September 2010
Location: Italy
Posts: 13
Posted: 16 September 2010 at 12:08pm

Anton, i tried but doesn't work, now some pages give error 404 look at http://www.etineris.net/it/blog/

RewriteRule /wp-(.*) /wp-$1 [L] /it/blog/(?!(?:index\.php|wp-admin/|wp-content/|wp-includes/|wp-activate\.php|wp-app\.php|wp-atom\.php|wp-blog-header\.php|wp-comments-post\.php|wp-commentsrss2\.php|wp-config\.php|wp-cron\.php|wp-feed\.php|wp-links-opml\.php|wp-load\.php|wp-login\.php|wp-mail\.php|wp-pass\.php|wp-rdf\.php|wp-register\.php|wp-rss2\.php|wp-rss\.php|wp-settings\.php|wp-signup\.php|wp-trackback\.php|xmlrpc\.php))(.+) /it/blog/index.php/$1 [I,L]



__________________
svetlana
Back to Top Visit svetlana's Homepage
 
syoung68
Newbie


Joined: 26 July 2010
Posts: 11
Posted: 16 September 2010 at 12:13pm

Anton, I have a new issue. I am using eShop on a site that uses a redirection url (/shopping-cart/checkout?eshopaction=redirect) that should redirect to another page. It does not however.

It will work if I turn off ISAPI and put the WP URLs back to normal.

/index.php/shopping-cart/checkout?eshopaction=redirect

These are my rewrite rules;
RewriteRule /wp-(.*) /wp-$1 [L]
RewriteRule /(?!(?:img|images))(.*) /index.php\?p=$1 [I,L]

I can't just add "shopping-cart" to the second rule because it breaks other links. (/shopping-cart, and /shopping-cart/checkout)

This is what i have tried so far, none of which work.
RewriteRule /shopping-cart/checkout\?(.*) /index.php/shopping-cart/checkout\?$1 [I,L]

RewriteRule /shopping-cart/checkout\?eshopaction=(.*) /index.php/shopping-cart/checkout\?eshopaction=$1 [I,L]

Any thoughts are apreciated.



Back to Top
 
svetlana
Newbie


Joined: 15 September 2010
Location: Italy
Posts: 13
Posted: 17 September 2010 at 1:28am

Anton, any suggestion to solve my problem.
Thank you


__________________
svetlana
Back to Top Visit svetlana's Homepage
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 17 September 2010 at 3:06am

@svetlana:

"now some pages give error 404"
- what are these pages? do some pages work fine?
Please make sure you have wither root relative or absolute format for links on pages and relative format may break links.

@syoung68:

Please try the following config:

RewriteRule /wp-(.*) /wp-$1 [L]
RewriteRule /(?!(?:img|images|index\.php))(.*) /index.php$1 [I,L]

__________________
Regards,
Anton
Back to Top
 
syoung68
Newbie


Joined: 26 July 2010
Posts: 11
Posted: 17 September 2010 at 7:00am

Anton, that breaks everything.
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 17 September 2010 at 8:15am

@syoung68:

Sorry, could you then give me more explicit explanation about what URLs you want to take care of and how the must be processed.

__________________
Regards,
Anton
Back to Top
 
syoung68
Newbie


Joined: 26 July 2010
Posts: 11
Posted: 17 September 2010 at 8:22am

These are my current rewrite rules;
RewriteRule /wp-(.*) /wp-$1 [L]
RewriteRule /(?!(?:img|images))(.*) /index.php\?p=$1 [I,L]

and WP is set to use /%category%/%postname%

Everything works fine EXCEPT

/shopping-cart/checkout?eshopaction=redirect

I need it to point to

/index.php//shopping-cart/checkout?eshopaction=redirect

Back to Top
 
syoung68
Newbie


Joined: 26 July 2010
Posts: 11
Posted: 17 September 2010 at 8:27am

Anton, I am an idiot. I had the other rules after my first two and it was not even hitting them. I have solved it. Thanks for your attention.
Back to Top
 
jb510
Newbie


Joined: 21 April 2010
Location: United States
Posts: 5
Posted: 28 October 2010 at 4:52am

Great thread, finally got ISAPI rules working for the first time.

I narrowed it down to the simpliest rules that work being syoung88's
rules, but the archive links from the blog section (by date) still aren't
working.

My httpd.ini is:
[ISAPI_Rewrite]
RewriteRule /wp-(.*) /wp-$1 [L]
RewriteRule /(?!(?:img|images))(.*)/? /index.php\?p=$1 [I,L]

My WP permalink structure is:
/%year%/%monthnum%/%postname%/

The blog is at:
http://www.wlpconsultants.com/blog/

The links not working in the Archive section of the sidebar such as:
http://www.wlpconsultants.com/2010/06/

Any help? Thanks!
Back to Top
 
Anton
Admin Group


Joined: 30 January 2007
Location: Ukraine
Posts: 10519
Posted: 28 October 2010 at 7:17am

"The links not working in the Archive section of the sidebar such as:
http://www.wlpconsultants.com/2010/06/"
- which URL should this request take content from? What's the real pagename?

__________________
Regards,
Anton
Back to Top
 

<< Prev Page of 3 Next >>
 
Printable version Printable version
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum