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 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
18 Responses to “Joomla Mod_Rewrite”
SOoo awesome thanks man!!!
ty
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
example:
RewriteRule ^(.*)/([-a-z]*).html$ index . php?lang=$1&page=$2 [L]
index.php?lang=fr&page=your-page
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!
Thanks!
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?
thanks
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.
thanks man!
Thank you very much. This helps immensely–if only every tutorial was like yours.