I've been battling with redirects after users log in.
The redirect is encoded into the URL. For example:
http://demo.a3m.local:8090/account/sign_in/?continue=http%3A%2F%2Fdemo.a3m.local%3A8090%2Faccount%2Faccount_settings
On this demo install it works perfectly.
However on a development site it seems to double encode the url so it becomes:
http://dev.mysite.local:8090/account/sign_in?continue=http%253A%252F%252Fdev.mysite.local%253A8090%252Faccount%252Faccount_profile
Forward slash is encoded to %3A and then further to %253
Any suggestions?
Thanks.
Typical - struggle for days and as soon as you ask the question one works it out.
It was my .htaccess file rewriting the URL.
Used the No-Escape flag to fix it: http://httpd.apache.org/docs/2.2/rewrite/flags.html#flag_ne
Related
Hope that someone can help me solve this strange https:// behaviour in TYPO3 8.7.2 (and 7.6)
All https:// referrers are working fine. The only one giving a problem is the https://www.hocom-advies.nl which produces an url like this:
https://www.hocom-advies.nl/hocom-advies.nl which results in a TYPO3 error: Page not found! ??
I have all rewriting in my Vhost. Only some basic TYPO3 rewrite stuff in the .htaccess file. And some basic TS lines in the config.
The same https request on an other TYPO3 8.7.2 system is working ok! Both settings in the VHost and TSconfig are equal.
So where to look for here? Any idea? Thanks.
your domain duplication can have multiple reasons:
have you configured config.absRefPrefix = / (or have you inserted your domain?)
don't use baseURL!
are your rewrites clean? (no missing protocols?)
do you generate links without protocol?
I have some issue in URL redirecting.i created url redirect (in admin) without quotation it's working fine. like http//www.domain.com/products/wingback-chair/leadimage.position=3
when ever i created url redirect (in admin) with quotation mark like http//www.domain.com/products/wingback-chair?leadimage.position=3 the URL redirect does not work.it's shows 404 error.
Please tell me if there any possibilities via htacces convert "?" to "/" or any idea/suggestion. i appreciate you.
Thanks in advance.
dot (.) is not the really good character to put in a url parameters and it is most probably that that makes things go wrong. you can probably use underscore (_) or some other thing. If you really need to use a dot, you should have a look to : https://stackoverflow.com/a/16999694/2660794
When I go to the url: http://localhost/checkout/pay/393032-bb9320fc213459a-6c653c8bd1
I get a 404 error, which is correct, because this page does not exist.
However, when I go to http://localhost/checkout/pay/393032-bb9320fc213459a-6c653c8bd1/ (note the addition of a trailing slash) it redirects me to http://localhost/pay/393032-bb9320fc213459a-6c653c8bd1 (without the /checkout), which also does not exist.
Why is the addition of a trailing slash causing it to redirect me? I don't have a .htaccess file, so it can't be that, and since the pages do not exist it can't be a script doing a redirect. When I look at the page in firebug, I don't see a redirect either, it seems to be changing the url invisibly, and I can't figure out why. Where should I look?
Edit: turns out it is only this one specific url that is being redirected, and it only happens in firefox, so I don't think it's an apache problem. I'm using Firefox 26.0, on ubuntu. what would make firefox pick one url and redirect it like this?
See if you have Apache Module mod_dir activated
http://httpd.apache.org/docs/current/mod/mod_dir.html
It will automatically add a / if needed and serve the default page.
I developed a site in codeigniter with basic functionality now i want to update this site to my live server. But when i uploaded my site to live server it shows 404 - PAGE NOT FOUND.
http://www.nawtist.com/test/ams/
Please tell me what do i need to do. I searched a lot about this but i didn't found any helpful information. So is there any base_url or anything else that i need to change before upload this on live server really appreciate
And remember, many servers are case-sensitive and with CodeIgniter v3 you should change the controller's first letter file and model's first letter file to upper case. That worked for me too.
Best
You have problem with your htaccess file or mod_rewrite is disable on that server.
When you go to page with index.php it works (although css file doesn't work because of bad routing)
also check if $config['index_page']=''; if it should work without index.php
I had the same problem times ago and there are 4 points in codeigniter to care about as I remember:
Check base_url value in your "config.php"
Check database settings in "database.php"
Check .htaccess file contents if you have defined it once
Check routes.php if you have defined any custom routes
That's all!
If you are facing 404 page not found in Codeigniter after upload file local to live server then follow these steps
change your controller and file name first letter capital
same change as above in model class and file name i.e first letter capital
After following steps above your problem can be solve Thank you.
I'm experimenting (and having problems!) with codeigniter.
In particular, links do not work.
even if they are correct (eg. http://localhost/ci-book/welcome/cat/3, where welcome is controller, cat the method), they can't be open and chrome says "Oops! This link appears to be broken...."
Someone suggested to check that mod_rewrite is working. How can I do that?
I'm using Mamp.
thanks,
P.
First, check that the basic URL without mod_rewrite works: http://localhost/ci-book/index.php?welcome/cat/3
Then setup mod_rewrite, restart httpd, and attempt to navigate back to your URL. If it works (or at least, if part of the page loads with errors), then mod_rewrite is working.