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

Easy way to manage pretty URLs

I've been looking forever for a good example to show how to easily create pretty URLs that accomplish the following: http://www.example.com/posts/some_string_here to allow a php page to serve up the corresponding record in a database that could be…
NCoder
  • 325
  • 3
  • 10
  • 25
0
votes
3 answers

How Can I rewrite SEO friendly URL on STRUTS?

We have a website which is coded Java with Struts Framework. The WebSite's Urls are not seo friendly. All of them are like below ../buyerApplication.do&companyId=2323 Now We want to make these URLs SEO friendly and I searched and found these…
FTI
  • 192
  • 2
  • 10
0
votes
2 answers

PHP URL Rewrite doesn't work on specific server

My URL rewrite works perfectly on my testing server, but not on the live server. I contacted the support team and they told me that mod_rewrite is already enabled on my hosting plan. Here is my .htaccess file RewriteEngine On RewriteRule…
Kareem JO
  • 191
  • 1
  • 12
0
votes
1 answer

How to restrict to access to non-SEO URLs in Joomla 3?

I've converted all my URLs to SEO friendly URLs. But I want to restrict to be accessed to my non-seo friendly URLs. As an example, you can access to www.example.com/article-1 with…
Sefa K
  • 3
  • 1
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
0
votes
3 answers

Why are two ActionResult methods being invoked for my page?

I have an asp.net-mvc app with the following aspx pages served by my 'Users' controller: Index.aspx, User.aspx, UsersIntoActivity.aspx and UsersUsingLocation.aspx. In my Global.ashx.cs I've got the following routes set up: routes.MapRoute( …
Matthew Dresser
  • 11,273
  • 11
  • 76
  • 120
0
votes
2 answers

Mod_Rewrite PHP issue

I have actually tried the tutorial stated in here: http://net.tutsplus.com/tutorials/other/using-htaccess-files-for-pretty-urls I have tried to use the PHP version of the Tutorial. However it doesn't seems to work. In fact it looks a little bit…
0
votes
2 answers

AJAX url data send with friendly url's in Wordpress

I'm working in a page of Wordpress that reload the post showed in one DIV. The reload comes from the click in any post of the list under this DIV. All is working fine but the problem is that i want to mantain friendly url's of Wordpress, and AJAX…
0
votes
1 answer

Friendly URL with the same pattern

I can redirect and make a single Friendly URL:
Dimitri
  • 141
  • 2
  • 4
  • 18
0
votes
1 answer

rewriting versus redirecting with mod_rewrite for pretty URLs

I'm using a standard snippet to route requests for "myfile" to "myfile.php", using Apache: # Add .php-extension to base URLS using rewrite (so links can omit it) RewriteCond %{REQUEST_FILENAME} !-d RewriteCond…
Ben
  • 11,082
  • 8
  • 33
  • 47
0
votes
1 answer

FriendlyID doesn't build HTML escaped slugs

I have friendly_id setup properly and everything works, using slugs. The issue I am having is that some of the names on my Tag model (which is the model that FriendlyId is attached to) need to be HTML escaped. Names like c++ or .net. When I ran…
marcamillion
  • 32,933
  • 55
  • 189
  • 380
0
votes
1 answer

Friendly URLs cakephp 2.3

I'm new using cakephp, and I'm trying to set Friendly URLs for my site, but I'm having problems. I've already made all the steps that the cakephp 2.3 Book says, and my apache configuration says that the mod_rewrite is being executed. And when I…
0
votes
1 answer

Translate Htaccess line of code, confused by regex, handle letters versus numbers differently

I have this line of code in my htaccess file. RewriteRule ^url/([\w\d]{6})$ page.php?id=$1 [L] I understand that it's rewriting the url from site.com/url/wkwkwk to site.com/page.php?id=wkwkwk However, I don't understand what the [\w\d]{6} means. …
Kevin
  • 1,685
  • 7
  • 28
  • 55
0
votes
1 answer

Forcetype in httpd.conf not working

I want to use pretty url. So I searched net and tried to use the forcetype approach. httpd.conf: ForceType application/x-httpd-php ls htdocs/ favicon.ico index.php main.php webalizer xampp But this doesnot work. I…
Abhishek Gupta
  • 6,465
  • 10
  • 50
  • 82
0
votes
1 answer

ASP.NET Friendly URLs 404 errors

When I start a web app by loading a page deep in the site, I consistently get a 404 error when using ASP.NET Friendly URLs. I can reproduce this by: Start web app by loading page in website root Navigate to page such as…
John D
  • 79
  • 1
  • 5