Jump to content

Recommended Posts

Posted

I'm not experinced in Apache, but it looks like apache rewrites url incorrectly. There should be a .htaccess file on the root directory of PW and inside it you should see

  # ----------------------------------------------------------------------------------------------- 
  # 19. Pass control to ProcessWire if all the above directives allow us to this point.
  # For regular VirtualHosts (most installs)
  # ----------------------------------------------------------------------------------------------- 
  RewriteRule ^(.*)$ index.php?it=$1 [L,QSA]

  # ----------------------------------------------------------------------------------------------- 
  # 20. If using VirtualDocumentRoot (500 NOTE): comment out the one above and use this one instead
  # ----------------------------------------------------------------------------------------------- 
  # RewriteRule ^(.*)$ /index.php?it=$1 [L,QSA]

If it's still not working rewrite module may not be activated

https://stackoverflow.com/a/5758551

Posted

Has it ever worked?

Are you redirected after you enter your credentials or even before that?

If you can browse the front site then the .htaccess & mod_rewrite should be working right?

 

Posted

If the rewrite isn't working you wont even get to the login form, it just redirects back to homepage like you've been experiencing

Posted

That should be enough to get rewrite working, but as it's not working then most likely rewrite isn't enabled/.htaccess isn't parsed by apache.

Posted

Can you tell us something about the environment, it's Apache on a dev machine or web hosting company ? 

Can you post version numbers, PHP, Apache, PW, whatever might be handy, did you edit anything after you installed? 

Did you try another browser or clear cookies, any browser plugins that might affect it?

I did disable mod_rewrite for a moment on my dev machine and still see the login form, just can't login.

Posted

You should have this in your .htaccess file to get rid of the ? in your urls:

RewriteCond %{THE_REQUEST} ^.*/index.php 
RewriteRule ^(.*)index.php$ /$1 [R=301,L] 
Posted

Well, then then I'm back to suggest checking .htaccess rule 19. This has to work for PW to handle requests to pages other than homepage.

  # ----------------------------------------------------------------------------------------------- 
  # 19. Pass control to ProcessWire if all the above directives allow us to this point.
  # For regular VirtualHosts (most installs)
  # ----------------------------------------------------------------------------------------------- 
  RewriteRule ^(.*)$ index.php?it=$1 [L,QSA]

  # ----------------------------------------------------------------------------------------------- 
  # 20. If using VirtualDocumentRoot (500 NOTE): comment out the one above and use this one instead
  # ----------------------------------------------------------------------------------------------- 
  # RewriteRule ^(.*)$ /index.php?it=$1 [L,QSA]

</IfModule>

#################################################################################################
# END PROCESSWIRE HTACCESS DIRECTIVES
#################################################################################################

 

Posted

I tried to rename .htaccess file. Site loads only home page. Other requests return 404 error. The request to admin page keeps on returning home page with /?/admin/ at the url of the page.

Posted

Strange, When I do that I get a 404 on /admin/ as well... maybe reinstall PW and try changing the /admin/ to something else, just as a test?

What are you using as a platform, I use wampserver on Windows?

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...