FAQ Database Discussion Community


Joomla pretty link to article

joomla,hyperlink,module,pretty-urls
I want to create a button with a link to an article for which I have the ID. I get the ID from a form field which returns a menu item ID. So far I've tried this: <a href="index.php?option=com_content&view=featured&id=280"><p>read it</p></a> result = /joomla/index.php?id=69, so it doesn't work. The end result...

Hide a directory with htaccess

.htaccess,mod-rewrite,url-rewriting,pretty-urls
I'm trying to hide a directory users of url (ex.:): meusite.com.br/users/teste but so far not succeeded. Like that by accessing meusite.com.br/teste show the content inside the folder teste and, if accessed URL meusite.com.br/users/teste the /users/ were removed and only exhibited the meusite.com.br/teste. I've tried: RewriteCond %{REQUEST_URI} !^/users RewriteRule (.*) /users/$1...

Redirect to 'pretty-urls' doesn't work

.htaccess,pretty-urls
I want to make my website to have 'pretty-urls'. Also I want to make so users which input 'ugly' urls will be redirected to 'pretty-urls'. Simplified example: I have page data.php?id=123. I want so it shows to users as data/123 and for whose who typed in address bar data.php?id=123 it...

.htaccess pretty urls not working

php,.htaccess,mod-rewrite,clean-urls,pretty-urls
I'm trying to use pretty urls on my site, I don't know too much about htaccess but after some search I ended up with this: RewriteEngine On RewriteRule ^([a-z]+)\/([0-9]+)\/?$ content.php?action=$1&id=$2 [NC] What I'm trying to do is changing this: mysite.com/cms/content.php?action=content&id=80 into: mysite.com/cms/content/80 But somehow it's not working and what I...

.htaccess Pretty URLs title in url

php,.htaccess,mod-rewrite,url-rewriting,pretty-urls
I'm trying to make pretty url but want to put content title in url instead id, then i put content title in url with query string: index.php?action=content&id=22 changed to: index.php?action=content&title=stack-over-flow it's works fine. now i trying to make it pretty but got a problem in htaccess code. before removing id...

Need to pass backslashes in query string with pretty urls

php,mod-rewrite,urlencode,pretty-urls
I'm trying to pass a backslash as part of a query string argument. The project uses a pretty simple url_rewriting method: //.Htaccess RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule .* index.php?arguments=$0 [NC,L] Then receive $_GET['arguments'] with values separated by / Ex.: blog/post/2/ will fill $_GET['arguments'] with: 'post/2/' The...