I`m working on making a Simple URL Shortener But having some Issues with Mod_Rewrite ~
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^hu/([^/]*)$ /?code=$1 [L,QSA]
RewriteCond %{HTTP_HOST} !^AgeofW\.us$
RewriteRule ^(.*)([^hu/])$ http://%{HTTP_HOST}/hu/$1 [R=301]
The Idea of the URL is "AgeofW.us/hu/" to have a Trailing /hu/ at the end of the URL no matter what. But again. Im having some Issues with this. I
ve tried for the last hour or two, and I have been forced to ask here! Anyone have a Idea? Or Explain to me? I`ll memorize it Lolz.
~~ This Generates a Infinite Loop that Generates: The requested URL /hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/hu/ was not found on this server. ~ Over and Over again.
I`ve multiple Attempts, and Code Corrections, and have yet to comeup with a single Viable Solution.