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
0
votes
2 answers

How src property in tag interacts with index.php using pretty URLs

In a typical php app using MVC pattern,every request will be led to index.php,which means when I type in http://localhost/controller1/action1 it will make the first request to the php script,then,what if the html page generated from…
user7031
  • 435
  • 4
  • 16
0
votes
2 answers

Modrewrite for pretty url

How can modrewrite be done in this above situation: Lets say the website us is: www.real-estate.com Then we have the first mod rewrite: RewriteRule ^([a-zA-Z\-]+) cities.php?city_url=$1 So this will rewrite to something similar:…
Suciu Lucian
  • 430
  • 4
  • 12
0
votes
1 answer

Concrete5 - Using pretty URLs in SiteMap 'Visit' link

Using Concrete5 v5.6.3.1 I have pretty URLs enabled and they are working as expected. Let's say I created a page named 'test' that is accessible from the pretty URL: http:///my_awesome_test When I click on the page in the SiteMap UI and…
Johannes
  • 6,232
  • 9
  • 43
  • 59
0
votes
2 answers

ajax submit request with pretty URL

i'm building my first "pretty url" web site, but when i attempt to run any of the AJAX Request functions, they are not being passed to the correct file (submit.php) i have 1 file that holds all of the AJAX requests…
stoopkid1
  • 114
  • 1
  • 1
  • 9
0
votes
3 answers

Pretty URLs and resource items with the same name

I have a question for today. If I am developing, for example, a blog that uses pretty URLs to link the blog posts like /posts/welcome-to-my-blog And sometimes later I created another blog post with the same name, therefore the link would…
GiamPy
  • 3,543
  • 3
  • 30
  • 51
0
votes
1 answer

comprehensive primer on slugs and or pretty URLs in django

On the official django site, for version 1.6, under 'design philosophy' , it says pretty URLs should be easier to make than ugly ones. But when I search the site, I can't find any other use of the word 'pretty'. So how, or where, is the step by step…
Malik A. Rumi
  • 1,855
  • 4
  • 25
  • 36
0
votes
1 answer

ASP .NET Filter URL Parameters

Can anyone help me filtering URL parameters because I just can't find correct answer for that. So lets say I have URL like this Custom/Action/FirstParm/2 If I have last parameter only 1,2,3 ids in database and I manually enter 10 in URL I want to be…
zhuber
  • 5,364
  • 3
  • 30
  • 63
0
votes
3 answers

How to make URL with unique ID pretty and improve visibility in search results

My team is developing a new website to offer "Online tour Registration" services for a company. While designing tours page, We were discussing how to create a URL for every tour such a way that everyone can understand it and on the other hand it…
Iman
  • 533
  • 2
  • 8
  • 23
0
votes
1 answer

Htaccess: changes root and doesn't find files

I have a htaccess file that I am try to make a rewrite but it causes me multiple problems. First here is my htacess file: RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{HTTP_HOST} ^www\.(.*)$…
Cedric
  • 87
  • 1
  • 2
  • 9
0
votes
3 answers

Rails routing for pretty urls and get variables

Rails noob here I have a url "/products?sports=2", which shows the products fine. But I want the url to be "/volleyball" I currently have, which I know is completely worng: match 'volleyball' => 'products?sports=2' Any suggestions? Thanks.
Daniel Broughan
  • 755
  • 1
  • 9
  • 17
0
votes
1 answer

Pretty PHP URLs with nginx (Ubuntu)

I am having a lot of difficulty configuring nginx pretty URLs with PHP. I am trying to rewrite /verify/codehere (code example: dsifoj24234j) to verify.php?key=codehere Here is my current configuration: location ^/verify/(.*)$ { …
user2350858
  • 681
  • 2
  • 10
  • 16
0
votes
2 answers

How do I create an .htaccess to serve index if the last node is a directory, else, serve a file?

So, if I have the following URL: http://www.example.com/Foo/Bar/Drink/ The last node of the URL (in this case, Drink) will be either a directory, in which case I want to serve index.php, or it will be a file named "Drink.php", in which case I want…
Tealstone
  • 30
  • 2
0
votes
1 answer

Create pretty url from plain html page?

I have looked over several articles on setting up "Pretty URL's" and I can't seem to get anything to work for me. I am new to the whole .htaccess process and it seems like everything I've seen is geared toward dynamic, .PHP based sites. Here is what…
0
votes
1 answer

HTACCESS RewriteRule - Not sending query string from Pretty URL

I am having trouble with the RewriteRule. I have created a pretty URL for my search page where it posts to itself to query the results. However the $_GET['type'] variable is not being sent to the page. This works perfectly fine on my local WAMP…
A Star
  • 605
  • 9
  • 18
0
votes
1 answer

.htaccess pretty URL's excluding index.php and adding trailing / to the end

Ok, I've fought with it for hours. I have 3 different .htaccess scripts which do what I need, but I'm unable to mix them together. Make a pretty url from (example.com/gallery.php -> example.com/gallery) Options +FollowSymLinks RewriteEngine…
yodalr
  • 9,778
  • 10
  • 32
  • 47