Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8862971
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T15:51:33+00:00 2026-06-14T15:51:33+00:00

Im developing a CMS with PHP and MVC. I have the follow htaccess: <IfModule

  • 0

Im developing a CMS with PHP and MVC. I have the follow htaccess:

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

So i have a dispatcher to go to diferents views depends of the permalink on the url.

My problem is that im trying to use ajax for a Login and few things more and cant make it works.

Is there any expception in .htaccess to make this work or i only can put more exceptions on dispatcher to load the .php in ajax?

Anyone can help me?

Thanks in advance.

EDIT:

$.post
(
    "../ajax/login.php",
    {
    u:Base64.encode(user),
    p:Base64.encode(password),
},
    function(data)
    {

    },
    "json"
);

I tried with:

“../ajax/login.php”

PATH+VIEW+THEME+”/ajax/login.php”

My folder structure is:

view
    themes
        standar
            ajax
                login.php
            js
                ajaxInteractions.js
            index.phtml
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T15:51:34+00:00Added an answer on June 14, 2026 at 3:51 pm

    As stated in the comments, you need to check your path or just use your absolute path like this:

    $.post
    (
        "/view/themes/standar/ajax/login.php",
        {
        u:Base64.encode(user),
        p:Base64.encode(password),
    },
        function(data)
        {
    
        },
        "json"
    );
    

    And one more thing; it is not always best practice to spread out the code like this ( it’s good for PHP and plain JS calls ). For these types of calls, try to keep it more concentrated:

    $.post( "/view/themes/standar/ajax/login.php", {
        u:Base64.encode(user),
        p:Base64.encode(password),
    }, function(data) {
        /** do your stuff **/
    }, "json" );
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a personnel database of 10,000 individuals. I am developing a PHP CMS
As I find myself developing a pretty complex MVC-based CMS in PHP. I did
I'm developing a CMS using Yii Framework. In developing the theme I have a
I'm developing a MVC .Net site and would like to implement a CMS system.
I have been developing my own CMS for my own website. Just to test
I'm developing a CMS (with Django, but that doesn't matter) and have chosen GIT.
I'm currently developing (another) Open Source CMS in PHP and I'd like to use
I'm developing a php based CMS, and I'm currently re-writing it into a state
I'm developing an application using Wordpress as a CMS. I have a form with
I am developing a CMS and I want to have a framework so anyone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.