Questions tagged [pretty-urls]

Pretty URLs are URLs that are SEO-friendly and easy-to-read.

Pretty URLs are URLs that are SEO-friendly and easy-to-read. Usually, the pretty URLs are handled by rewrite engines, which convert the pretty URLs to query variables that the server understands and can use within the executed scripts. Pretty URLs have many pros - they are easy to read and more understandable from the user, and easier to index by the search engines. They are easier to manage and make more sense for the users when navigating the websites. There aren't many cons, but one that is worth to be mentioned is the fact that pretty URLs may fail to work on some servers, where the rewrite engines are disabled.

175 questions
1
vote
1 answer

.htaccess Pretty URLs title in url

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…
ITSolution
  • 398
  • 2
  • 9
  • 21
1
vote
5 answers

.htaccess pretty URLs are not working

I'm trying to use pretty URLs on my site, and 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] I'm trying to change…
Pedram
  • 15,766
  • 10
  • 44
  • 73
1
vote
1 answer

Redirect to 'pretty-urls' doesn't work

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…
Somnium
  • 1,059
  • 1
  • 9
  • 34
1
vote
1 answer

.htaccess authentication with wordpress

OK, I have an area on my wordpress site, home/gallery/test and I want to restrict access to it using .htaccess. Setting up authentication for a directory using .htaccess is pretty straightforward. But my problem in wordpress is that…
DrNoFruit
  • 185
  • 1
  • 3
  • 12
1
vote
3 answers

send get variables for pretty url

I'm creating a pretty url base web and I have a problem with get variables in form. I have a url like localhost/events/1 (1 is a get variable $_GET['eventID']). I want to send the eventID with a form like below