Jamit Software Forum
Welcome, Guest. Please login or register.
July 16, 2019, 08:05:44 am

Login with username, password and session length
Search:     Advanced search
May 5th, 2010 - Jamit Software Launches the Market!
3,080 Posts in 791 Topics by 1,542,148 Members
Latest Member: breathhouse1
* Home Help Search Login Register
+  Jamit Software Forum
|-+  Jamit Job Board Customers
| |-+  User-to-User Support
| | |-+  htaccess conflict with Wordpress
« previous next »
Pages: [1] Print
Author Topic: htaccess conflict with Wordpress  (Read 6956 times)
slink
Jammers
Newbie
*
Posts: 9


« on: June 17, 2009, 07:48:04 pm »

I have wordpress MU installed in the root directory and Jamit installed in the "jobs" directory. There are several rules:

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

The LAST rule - . index.php - causes problems with Jamit's search friendly urls. Is there something I can do to modify this last line or to modify my jamit files to make sure I don't get "page not found" errors like I am getting at present? Jamit looks like this:

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^jobs/category/(.+)$ /jobs/index.php?cat_name=$1 [NC,L]
RewriteRule ^jobs/job/(.+)$ /jobs/index.php?post_permalink=1&post_id=$1 [NC,L]
RewriteRule ^jobs/profile/(.+)$ /jobs/index.php?show_emp=$1 [NC,L]
RewriteCond %{QUERY_STRING} .+
RewriteRule ^jobs/page([0-9]+) /jobs/index.php?%{QUERY_STRING}&job_page_link=$1 [NC,L]
RewriteRule ^jobs/page([0-9]+) /jobs/index.php?job_page_link=$1 [NC,L]
</IfModule>

Logged
Adam
Administrator
Hero Member
*****
Posts: 112


« Reply #1 on: June 18, 2009, 12:48:59 am »

try putting Jamit's rules before WordPress's rules. Also, all the rules can be just inside one <IfModule mod_rewrite.c> directive, eg.

<IfModule mod_rewrite.c>

RewriteEngine on

RewriteRule ^jobs/category/(.+)$ /jobs/index.php?cat_name=$1 [NC,L]
RewriteRule ^jobs/job/(.+)$ /jobs/index.php?post_permalink=1&post_id=$1 [NC,L]
RewriteRule ^jobs/profile/(.+)$ /jobs/index.php?show_emp=$1 [NC,L]
RewriteCond %{QUERY_STRING} .+
RewriteRule ^jobs/page([0-9]+) /jobs/index.php?%{QUERY_STRING}&job_page_link=$1 [NC,L]
RewriteRule ^jobs/page([0-9]+) /jobs/index.php?job_page_link=$1 [NC,L]

RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule . - [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(wp-.*) $2 [L]
RewriteRule  ^([_0-9a-zA-Z-]+/)?(.*\.php)$ $2 [L]
RewriteRule . index.php [L]

</IfModule>


Anyone else tried this?
Logged
slink
Jammers
Newbie
*
Posts: 9


« Reply #2 on: June 18, 2009, 08:39:47 am »

The order actually worked, thanks. I had to put it all the way on top just below my non-www redirect.
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!
Page created in 0.023 seconds with 17 queries.