NameSilo

Need developer help on Joomla

Spaceship Spaceship
Watch

jimb0t

Marketing MachineEstablished Member
Impact
3
On one of my clients Joomla site, they are trying to turn on SEF (search engine friendly) url's. Everything works fine when they turn them on except for one thing.

The ajax begins calling the wrong index.

index.php loads the whole site, index2.php IS SUPPOSED TO loads just the content.

With the ISAPI rewrite rules on, everytime index2.php is called it converts it to index.php. This shouldn't happen, because now the ajax is loading the whole page in a little window instead of just the content.

I found where the problem is in the ISAPI rewrite, however I don't know what to do to keep index2.php from being converted to index.php. If I turn these 2 rules off everything works fine.

Here is the problem code,

Code:
RewriteRule /(?:administrator|templates)(?:/.*|$) $0 [I,L]  

RewriteRule (?!/index\.php)(?:[^?]*\.(?:php|html?|feed|pdf|raw)|[^.?]*)(?:\?.*)? /index.php [I,L]

Is there anyway I can keep index2.php from being switched to index.php? The client wants SEF url's so I have no choice but to find a solution, because I could easily just turn this off and it would be fine.



Again a breakdown of the problem.....

index.php calls the whole site, index2.php calls just the content (for ajax use). When I turn on those rewrite rules above, when index2.php is called it automatically converts and calls index.php therefor making my ajax load the whole site instead of just the content.
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
use this:
Code:
RewriteRule /(?:administrator|templates)(?:/.*|$) $0 [I,L]  

RewriteRule (?!/index\.php)(?:[^?]*\.(?:html?|feed|pdf|raw)|[^.?]*)(?:\?.*)? /index.php [I,L]
 
0
•••

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back