I have too many RewriteRule inside .htaccess.
Now i like to remove those RewriteRule and use php to load or redirect my link.
For that i use header but when i use it, my original urls in the browser are changing.
For example:
My original link: http://test.com/something/someID, and when i use header, it change to : http://test.com/page.php?id=
Bottom line i need something like vbseo (vbulletin) to management my link without using RewriteRule, but of course i have the below code inside .htaccess to redirect all my link to some specific page.
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ index.php [L,QSA]
Just don’t give any headers. By default redirected links remain the same. (even though the server redirects them, it’s transprent to the client). So you need to pass it to index.php but with a GET value of the original route.
So…
So
example.com/this/is/a/testwould redirect toexample.com/index.php?route=this/is/a/testwhich then you can check in your index.php file and reroute however you want based on that$_GET['route']