Skip to content
Advertisement

Tag: .htaccess

Pretty URLs with .htaccess

I have a URL http://localhost/index.php?user=1. When I add this .htaccess file I will be now allowed to use http://localhost/user/1 link. But how about http://localhost/index.php?user=1&action=update how can I make it into http://localhost/user/1/update ? Also how can I make this url http://localhost/user/add ? Thanks. Sorry I am relatively new to .htaccess. Answer Thanks for the idea @denoise and @mogosselin. Also with @stslavik

Laravel routes aren’t working with 1&1 [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question Many many many topics about this, but I have to say that none are helping me a great deal. I have a website with Laravel

GET method in php mvc framework

I am writing a PHP MVC framework from scratch by myself, I use this .htaccess rules to redirect all requests to my bootstrap: Now the problem is I can’t use GET method anymore on forms, when I want to submit a search form using GET method the get parameter won’t send, but it will work with post but it’s not

rewrite uppercase url to lowercase url htaccess

I want my urls that contain uppercase characters to be redirected to lowercase url’s. Unfortunatly i don’t have access to the httpd.config file. So i tried this method to rewrite the urls with the htaccess file: http://www.askapache.com/htaccess/rewrite-uppercase-lowercase.html . But it adds extra / because it’s a loop and also it doesn’t work (504 error) when the url consists of more

Redirect /index.php – wordpress

I want that if someone got link to my site, lets say: www.bla.com/index.php , he will redirect to www.bla.com. or in another words – remove the index.php. Here is my .htaccess file: Either if someone got link: www.bla.com/camera/index.php – it will redirect to www.bla.com/camera/. For now, the site itself works great, without index.php, but i want to remove the index.php

Redirect only WordPress homepage with a 301 redirect

I have a blog, lets say example.com and another blog installed in example.com/np which is not multisite but a different WordPress installation. What I want is to redirect example.com homepage only to example.com/np. It would be great if that redirection is a 301 moved permanently redirection. If I place the 301 redirection in WordPress header file, header.php, it will redirect

Advertisement