I am using ajax jquery pagination library.
If in config file base_url defined as https:// then pagination is not working and showing 301 Moved Permanently, but if it's http:// then pagination is working.
What could be the problem?
added use_ssl(TRUE). problem resolved
Related
I have Wordpress installed in a laravel project.
My Wordpress has site url and home url is same: https://laravel-domain/column
I config permalink to https://laravel-domain/column/sample-post/
My problem is: when I access link https://laravel-domain/column/post-name-abc
Page redirect 301 to https://laravel-domain/post-name-abc and show 404
My expectation: Access: https://laravel-domain/column/post-name-abc
--> Redirect 301 to https://laravel-domain/column/post-name-abc/
Please help me. thanks
I am trying to redirect /es/services to /es/servicios but I'm unable to do it, I've tried on .htaccess with
Redirect 301 /es/services mydomain.net/es/servicios
But nothing happens, also wanna say only on /es language so how can I do it?? I'm using laravel 5.5
Thanks!
I have migrated my laravell 7 sites to a new host site is displaying all data but CSS, JS and Route not working in chrome console it is showing err with Failed to load resource: net::ERR_CONNECTION_REFUSED all URL of assets and routes are using https, how to disable https and use http?
You can use as middleware.
URL::forceScheme('http');
The problem was resolved by commenting below code in htaccess
Header always set Content-Security-Policy: upgrade-insecure-requests
In my codeigniter project, I have set error page for 404 page not found. It works fine but when I hit url with dot[.] at last or between url, It shows apache's 404 page not found message instead of my error page.
plz help me if anyone can...
Make a new file called .htaccess in project root folder if not exists and add below code in it with 404 url.
ErrorDocument 404 /error/404
I have a page at http://www.example.com/my-inner-page. I need my server to respond with a 404 when someone tries to access this url. What is the rule I would use in htaccess to accomplish this?
Thanks!
You can use RedirectMatch:
RedirectMatch 404 "my-inner-page"