Home htaccess rewriterule internally redirect not working
Reply: 0

htaccess rewriterule internally redirect not working

molinet
1#
molinet Published in 2018-01-08 09:07:39Z

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.294665 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO