Laravel URL without Mod_rewrite - mod-rewrite

I want to call an function in a controller in a cronjob. This is not working because of mod_rewrite.
What is the correct URL for accessing this function without mod_rewrite?
For example, my url with mod_rewrite is:
http://url.com/public/index.php/cron/time_enabled
How can i call this without mod_rewrite?

Related

Redirect 301 a single URL using htaccess or routes.php

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!

URL redirection in codeigniter

I need help in url redirection in codeigniter,
I have following url
http://test.com/MyProject/My13d2lnbGlsZGNtcWt0Z2w=
When I click above url, then it should redirect to my function like,
http://test.com/MyProject/api/TestingManagement/getMyUrl/My13d2lnbGlsZGNtcWt0Z2w=
We can do it with CI routes or .htaccess, but how?
Thanks in advance
For Routes you can write following as last rule:
$route['(:any)'] = 'api/TestingManagement/getMyUrl/$1';

Need to change hmvc routes in CodeIgniter

I have CodeIgniter HMVC application and I want to change route as per requirement.
Now I have website/product/detail/url, and I want to change it with website/url.
Once I set URL from admin side it will redirect to my route.
This is what I have now:
$route['Products'] = "Products/detail/d101productdatatest(this is url)";
And I want in my url like website/url and it will open same page what I have with website/product/detail/url
From the given library:
https://www.codeigniter.com/userguide3/general/routing.html
routes as above:
$route['controller/function'] ='website/Products/detail/d101productdatatest';
But as per your given question:
you cannot manipulate url using routes
you can map same function with different url using routes
you have to use .htaccess to redirect to specific url after hitting the previous given url.
htaccess example:
Redirect /index.html /new/
Redirect /index.html /default.html
Redirect /private/ http://www.example.com/private/
Redirect /img/logo.gif http://www.example.com/images/logo.gif
Hope this answer helps you out !!
cheers

Magento2: Rewrite for Custom URL is not working

We can add a custom URL rewrite through the Magento back end but the URL redirection is not working properly.

url rewriting and redirection using .htaccess

I have been trying to rewrite dynamically generated URLs to static URLs. For example I achieve this URL after implementation of .htaccess command:
Rewritten URL: http://www.risenotes.com/top/Love-best-quotes
while actual URL is: http://www.risenotes.com/quotes/great-best-quotations.php?topic=Love
I am using below command for this purpose:
RewriteEngine On
RewriteRule ^top/([^/]*)-best-quotes$ /quotes/great-best-quotations.php?topic=$1 [L]
My code works perfectly well for above but I want to redirect all requests for
/quotes/great-best-quotations.php?topic=Love
to newly rewritten URL
/top/Love-best-quotes.
Can anyone guide me please???

Resources