I want show different url and execute different url [closed] - .htaccess

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 9 years ago.
Improve this question
I want show below url
http://example.com/folder1
and execute url is
http://example.com/?test=folder1

In .htaccess file try this
RewriteEngine On
RewriteRule ^([a-z0-9_\-]+)$ index.php?test=$1 [L,NC]

Related

I want to make a calculator here, but here are the instructions if It doesn't work, what should I do? [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 6 days ago.
Improve this question
(https://i.stack.imgur.com/XnvNa.jpg)
I want to make a calculator here, but here are the instructions if It doesn't work, what should I do?

htaccess redirect static to dynamic by extracting an ID from the URL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have a URL like
railroad-worker-decal-p-18196.html
I need to redirect it to
index.php?main_page=product_info&products_id=18196
How can I do this?
You need to capture the id and use it in the rewrite:
RewriteRule ^(.*)-p-(\d+).html$ index.php?main_page=product_info&products_id=$2

I am not able to access this filename [{"filename":"54526108_1946746692102415_4003062236024143872_n.jpg"}] [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 3 years ago.
Improve this question
I have tried console.log(filename.filename); but it is not working.
[{"filename":"54526108_1946746692102415_4003062236024143872_n.jpg"}]
It’s an array with an object in it. Just try
console.log(filename[0].filename)

How to use url rewrite with parameters [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
How to use url rewrite with parameters
example.com/news.php?id=1 to example.com/news/1
And the value of number will change dynamically.
RewriteEngine On
RewriteRule ^news/([0-9]*)$ /news.php?id=$1 [L]
Yes, there are many similar questions. But here is how to do it.
RewriteEngine On
RewriteRule ^news/([0-9]+)/?$ news.php?id=$1 [NC,L]
You should have mod_rewrite enabled in your server.

Find the extension of a webpage [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
Some website including my own use .htaccess files to make their urls look nice.
Is there a way to find out what the "ugly url" looks like ?
No, its not possible without guessing the URL.

Resources