Skip to content
Advertisement

Tag: .htaccess

Customize URL rewriting with htaccess

I have the following in my htaccess: It works perfectly, the question is whether it would also be possible to automatically redirect it to the new path when the PHP file is accessed directly? For example: example.com/pwreset.php >> example.com/reset-password There are several pages, so I needed something practical. UPDATE: The difficulty is with links like this: user.example.com/clientarea.php?action=services When accessed it

Hide URL parameter from URL to get page info in PHP

I have a website to show products and my URLs are like this www.website-name.com/product/product-name I used to use this URL to get the ID of the product www.website-name.com/product/product-id/product-name but I don’t want the product ID to be displayed in the URL, if I remove it I will not be able to make GET request in PHP to get the product

How can I hide php file extension using htaccess?

this line does hide the extension successfully. Now I do not want the page with the extension to be accessible; if one tries to access that page with the extension, it must show an error. Only the one that has the extension hidden that must be accessible. Answer @MrWhite gave an answer that showed how to throw an error message

htacess redirecting to js & css files

This is my typical PHP MVC Structure: This is my htaccess configuration: Write now my all requests are going through index.php. In my project files, I am accessing my css & js files located in Resources folder like following: This result in following error I tried to add following Rewrite rule in htaccess configuration, but it doesn’t work: I don’t

How to show download button to redirected users from a specific website

I have a free software downloading site on wordpress. Anyone clicking on the download button is being redirected to another site page in which there is the download link for the software. Example: Clicking on download button in “https://example1.com/510-2/” users are being redirected to “https://example2.com/608/”. Then clicking on “Unlock Download Links” on the top of the second page, a hidden

how do i allow space in regex in mod_rewrite engine

i have a regex that i want it to allow white spaces. this regex i am using is in the .htaccess file. whenever i put the s it makes the whole regex not work what can i do to make it allow white spaces and work? this is my regex: this is my full rewrite rule, when i put s

Problems with CSS search results on web sites [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 bro, if I may ask I have a CSS problem on the web, if I search the result of the web from Google it’s a

Remove /public after https redirect laravel .htaccess

I have a Laravel Page Deployed in a Shared Hosting and when I force http request to redirect to https the url contains /public My root .htaccess is: And my /public .htaccess is: The only problem here is: when you type the url like example.com it will redirect to https://example.com/public and everything works just fine. Even if you type https://example.com

Advertisement