Questions tagged [friendly-url]

A friendly URL is a website address that does not contain a query string or complex strings in the URI, instead relying on a human-readable, SEO-friendly resource path after the website authority (e.g. https://www.stackoverflow.com/questions/tagged/friendly-url).

A friendly URL is a website address that does not contain a query string, instead relying on a human-readable, SEO-friendly resource path after the website authority (e.g. https://www.stackoverflow.com/questions/tagged/friendly-url).

Most of the time it is achieved with the help of a Rewrite Engine, such as mod_rewrite for Apache or mod_rewrite for Lighttpd. Many content management frameworks have the ability to generate friendly URL's built in.

1221 questions
0
votes
1 answer

Secure URL/application

I was reading this article http://msdn.microsoft.com/en-us/magazine/hh708755.aspx related to securing Asp.net Application, but one thing i am not able to understand like i am browing url http://www.abc.com/XSS.aspx?test=ok and if i replace it with…
F11
  • 3,703
  • 12
  • 49
  • 83
0
votes
1 answer

More than just friendly urls

Here Some Urls that a gathered, and i wondered, How to use Codeigniter to active such result, and what are they called? exemple.com/movies/action/some-title-that-i-want-to-implement/ (brings a…
0
votes
2 answers

Friendly url in apache2

Now, have the next .htaccess (in the root folder): Options -Indexes Options -Multiviews RewriteEngine on # Ocultar extension php (hidden .php) RewriteCond %{REQUEST_FILENAME}\.php -f RewriteRule ^(.*)$ $1.php # Url amigable (frienly…
ramiromd
  • 2,019
  • 8
  • 33
  • 62
0
votes
2 answers

Friendly Url MVC4 with ImageResizer

I have just installed ImageResizer.Net library to test out resizing feature. I installed it with nuget and after a few seconds it started to run but not the way I like it. I want a neat url rewrite like /images/{width}/{height}/name.ext rather than…
0
votes
1 answer

store friendly-url with php in database created from db-field as source

Upfront, I have nearly no php coding skills, so please excuse if I am asking very basic questions. I want to create a php file I can execute via cron job which creates friendly_URLs in a non-modx-database. I have a table "myuri" which has 3 columns…
VolkaRacho
  • 191
  • 1
  • 2
  • 13
0
votes
2 answers

How to make long URLs friendly with .htaccess

I have a project am working on but I got a problem. Problem Main GET data: www.enterr.com/profile.php?username=beraki Will be : www.enterr.com/beraki This is ok But I have a 2 GET data url : www.enterr.com/profile.php?username=beraki&mode=about I…
Beraki
  • 142
  • 1
  • 2
  • 15
0
votes
1 answer

Converting parameterized URLs into Search Engine Friendly

I want to convert the following into a SEO friendly URL using .htaccess. http://www.domain.com/?a=search&q=search+query to http://www.domain.com/search_query I tried multiple examples from here but wasn't able to crack it.
0
votes
1 answer

.htaccess makes url pretty but now shows no content on the page

My urls currently look like this: http://www.example.com/test and they used to look like this: http://www.example.com/post.php?post=test That's great but my post.php page doesn't show any content anymore i.e. it doesn't show my blog post, title and…
Josh
  • 5,999
  • 8
  • 30
  • 43
0
votes
1 answer

Are these two re-writes the same?

How are the following different? Ignore the domain names. RewriteCond %{HTTP_HOST} ^www\.example\.com$ [NC] RewriteRule ^(.*)$ http://example.com/$1 [R=301,L] RewriteCond %{HTTP_HOST} !^www\.yourdomain\.com RewriteRule (.*)…
Abs
  • 56,052
  • 101
  • 275
  • 409
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

Special Characters break Generated URLs

I have an automated process which generates urls from the title of venue. I then use the following line to within my .htaccess to get the url to redirect to the correct path RewriteRule ^recipes/([\w-]+)/(\d+)$ ./recipes_news.php?i=$2 [L,QSA] a…
Jms Bnd
  • 1,213
  • 3
  • 13
  • 18
0
votes
2 answers

Rails Friendly id Fullstops

I am using Friendly id to allow custom queries, from the username, in my Rails app. So say the User's username is loremipsum rails would display this http://localhost:3000/users/loremipsum, and this works perfectly fine but say the User's username…
PMP
  • 231
  • 6
  • 25
0
votes
2 answers

.htaccess Friendly URL prevent redirect

I have a website which doesn't use friendly URLs and I would like to change that. My links so far are like this http://www.example.com/?l=EN&m=o36ASkkEVi, where the l variable contains the viewing language and the m contains the viewing category…
Dimitris Damilos
  • 2,363
  • 5
  • 23
  • 46
0
votes
1 answer

Is this a correct practice to generate friendly URLs?

I'm generating url of AJAX call like I explain here. (Please take a look of this post, is necesary to understand the actual). Some url has special chars so would be something…
mllamazares
  • 7,876
  • 17
  • 61
  • 89