Joomla Mod_Rewrite: Basic URL Rewrite with Mod_Rewrite. Learn how to shorten, clean and optimize your website URLs with Apache Mod_Rewrite! www.nuclearwolf.co.uk
Joomla Template Clean: NeXT Clean Corporate Joomla! Template. More info, live preview and screenshots here: http://bit.ly/O79hUz. More Joomla Template Clean ...
Joomla Templates Clean: Joomla! Templates. Dress up your Joomla! 1.5 and 1.6 websites with my clean, sleek and W3C-compliant Joomla! ...
Joomla Template Clean: lynda.com tutorial | Joomla! 1.6: Creating and Editing Custom Templates-Joomla! template files. Watch the entire course at ...
Joomla Templates Clean: lynda.com tutorial | Joomla! 1.6: Creating and Editing Custom Templates—The Package file. Watch the entire course at ...
Joomla Templates Clean: lynda.com tutorial | Joomla! 1.6: Creating and Editing Custom Templates—Index.html to index.php. Watch the entire course at ...
18 Responses to “Joomla Mod_Rewrite”
SOoo awesome thanks man!!!
Ok, I kinda get what you’re saying. But here’s how my thing is set up
profile?user=(user) so how could I set it up to /user/(user) from just that url type?
you could do this: ^(.*)/ to simulate a folder
RewriteRule ^(.*)/([-a-z]*).html$ index . php?lang=$1&page=$2 [L]
result: /fr/your-page . html
Nice tutorial! But I have a question, I’m trying to do this for a user system but when I set it to /user/USERNAME it thinks of it as a folder? Is there any way I can fix that?
@yaezuodono : usully it’s in one folder with your php file, i think and i usually do it
Nice tutorial, Thanks
where is your htaccess located? in the localhost root folder or in ‘tutorials’ folder?
havn’t got a clue what your talking about .. get me out of here
What does the plus sign represent?
It’s not integrated into the php or html. Apache will look for .htaccess in the directory it’s serving the current content from.
You matched [a-zA-Z0-9], I need to match what ever comes after my /
Btw excellent tutorial, short and simple!
This explanation is exactly what I’m looking for, thanks NuclearWolf. Gonna try it myself with my ugly /software.php?page=softwaremodule.php urls.
I am missing something though – how or where is the htaccess file integrated in to the php/html?
I tried your way but unfortunately, t does not work on my Mac, using localhost:8888 or localhost:10088. I think yours is based on localhost or 127.0.0.1 on Window.
Tried many ways of doing this and only yours worked. Thank you sooooo much! Happy new year!
Thank you, James.
This is why I love the web, it always (ok, not always) brings up the free-sharing.
Have an awesome new year.
Thank you very much. This helps immensely–if only every tutorial was like yours.
Mail (will not be published) (required)
What Is Joomla? How To Secrets Revealed