I am newbie here, and I am absolut beginner with mod_rewrite.
I am building a website of my own with Joomla 1.5 CMS.
I have a question. In my site I have a menu with submenus, and alias names. For example:
-Menuitem1
---Submenuitem1
---Submenuitem2
---Submenuitem3
I turned ON Search Enginge Friendly URLs, and use apache mod_rewrite. It works correctly.
If I select Menuitem1 in my browser, I see this in adress bar:
www.mydomain.hu/Menuitem1.html
It's good for me. I would like to see that.
If I select Menuitem1/Submenuitem2 in my browser, I see this in address bar:
www.mydomain.hu/Menuitem1/Submenuitem1.html
It's not good for me, I wouldn't like to see that.
I would rather like to see this: www.mydomain.hu/Submenuitem1.html
Summary:
instead of
www.mydomain.hu/Menuitem1/Submenuitem1.html
I would like this:
www.mydomain.hu/Submenuitem1.html
Is it possible?
How can I do this.
My mod_rewrite is the following:
- Code: Select all
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_URI} !^/index.php
RewriteCond %{REQUEST_URI} (/|\.php|\.html|\.htm|\.feed|\.pdf|\.raw|/[^.]*)$ [NC]
RewriteRule (.*) index.php
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization},L]
What should I change in this code?
Thanks for your replies, and sorry for my English