HOME
Market
FORUM
ABOUT
CONTACT
Welcome,
Guest
. Please
login
or
register
.
January 16, 2021, 01:56:12 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
May 27th, 2009 - Jamit Software Launches the forum today!
3,080
Posts in
791
Topics by
1,717,744
Members
Latest Member:
Hamlarpoosy
Jamit Software Forum
Jamit Job Board Customers
User-to-User Support
htaccess conflict with Wordpress
« previous
next »
Pages:
[
1
]
Author
Topic: htaccess conflict with Wordpress (Read 8191 times)
slink
Jammers
Newbie
Posts: 9
htaccess conflict with Wordpress
«
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
Re: htaccess conflict with Wordpress
«
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
Re: htaccess conflict with Wordpress
«
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
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Jamit Software
-----------------------------
=> Announcements
=> Forum Rules and Website feedback
=> Documentation, Tutorials and Installation Instructions [Redirect to http://www.jamit.com/docs.htm]
=> Contact Jamit Software [Redirect to http://www.jamit.com/contact.htm]
-----------------------------
Jamit Job Board Customers
-----------------------------
=> User-to-User Support
=> Jamit Technical Support Team [Redirect to https://www.jamit.com/support/]
=> Language Translations
=> Configuration
=> Payment Modules
=> Plugins
=> XML Import / XML Export help
=> Suggestion Box
=> Security
=> Developers
-----------------------------
General Boards
-----------------------------
=> Looking to Hire
=> Advertise your Services
=> Buy or Sell domains and sites
=> Job board scam reports
=> Job board showcase
=> General Discussion
Loading...