Home htaccess rewriterule internally redirect not working
Reply: 0

htaccess rewriterule internally redirect not working

user608
1#
user608 Published in May 20, 2018, 10:15 am

I'm trying to rewrite my url internally from

https://url/file/value to https://url/file/original_script.php?get=$1

where value is equal to $1 but when I go to https://url/file/value it redirects me to the second url (rewrites browser url)

My htaccess code looks like these:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^file/(.*)$ /file/original_script.php?get=$1 [L]
</IfModule>    

Does anyone knows why is this happening?

You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.322499 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO