espfutbol98
New Member
- Messages
- 200
- Reaction score
- 2
- Points
- 0
I've recently started implementing url rewriting in my site and I have ran into a problem:
First of all, I'm trying to rewrite http(s)://podaci.selfip.net/hr/moj_račun to http(s)://podaci.selfip.net/hr/[user_name]/moj_račun but it looks for all the linked files under the username's folder. I don't want to write exact urls because I don't want to force the use (or lack of use) of ssl.
What I have in .htaccess is:
First of all, I'm trying to rewrite http(s)://podaci.selfip.net/hr/moj_račun to http(s)://podaci.selfip.net/hr/[user_name]/moj_račun but it looks for all the linked files under the username's folder. I don't want to write exact urls because I don't want to force the use (or lack of use) of ssl.
What I have in .htaccess is:
Code:
order allow,deny
Allow from all
Options -Indexes
DirectoryIndex naslovnica
RewriteEngine on
RewriteRule ^naslovnica$ naslovnica.php
RewriteRule ^moj_račun user_personal.php
RewriteRule ^([^/\.]+)/moj_račun$ ../hr/moj_račun?name=$1