CodeCanyon

SEOUrl - Easy Search-Engine-Friendly URLs.

  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 100 and 1 000 dollars

Hey, congrats on getting it approved, and what a great file!

A few questions:

Is it possible to remove the file name?

Such as http://www.mydomain.com/admin/user/edit/Joe_Bloggs/

Also, if this is possible, what would the code be?

I need something easy like this for a project I’m currently working on =)
Default-user

Unfortunately that requires URL Rewriting, which must be done at a web-server level. Assuming you are using Apache, you’ll want to look at the mod_rewrite module, which should be available in your current installation:

http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

A helpful guide for doing this can be found at Nettuts+:

http://net.tutsplus.com/tutorials/other/a-deeper-look-at-mod_rewrite-for-apache/

It may look a bit daunting at first, but it’s actually very simple once you grasp the basic concept.

Once you’ve done that, SEOUrl can still help you get descriptive URLs, without requiring any modifications.

Good luck! :)

Thecodingdude

Wow, thanks for the super fast response, I wasn’t expecting that.

I did find your demo a bit mis-leading however, as I got the impression it did remove the file name AND extension.

For example, in the documentation, you wrote:
yoursite.com/articles/1-Hello-world!-the-very-first-article.

However, you are saying this CAN ’T be achieved through this plugin, as the some_file.php is still in the URL .

Also, I thought that the whole point of SEO was to make the URL ’s completely friendly? I mean, to an extent, these do look friendly, but can’t anybody just put some_file.php?1-an-article-some-really-awesome-article and use a $_GET request?

Also, you might want to mention that this does NOT use the .htaccess file, as some buyers may be under the assumption it does.

By the way, if you ever get this working without the some_file.php? extension, please please message me, I’d love to purchase! (I’ve been looking at the mod_rewriter script by Sitebase, but it looks confusing :P)

EDIT :

Now I am super confused, this just looks like a $_GET script, as I said above, surely a $_GET[‘test’]; could achieve the exact same thing right?

Default-user

Those two things are actually completely seperated, and not what I claimed to achieve (as is visible in the Live Preview).

“Removing the filename” is a routing concern that must always be handled at the web-server, there’s simply no way it can be done otherwise (even if certain aspects are handled at the script level, such as taking a raw path and routing it to a controller, there’s always atleast ONE initial URL rewrite done on the web server).

SEOUrl helps you create valid, descriptive and backwards-compatible URLs – not the same as just using $_GET[‘test’], that’d be silly.

Thecodingdude

Still, your documentation says:

yoursite.com/articles/1-Hello-world!-the-very-first-article.

Yet your live preview has a demo, which is:

http://fildob.com/SEOUrl/Preview/Preview.php?test = 123-Hello-world!

(URL broken up due to codecanyon)

So why is there not .PHP (I.E articles.php) on the above example?

I presume, using this script, that you can have a url such as:

yoursite.com/users/1-Joe-Bloggs

If so, how? (I.E what would my file be called (users.php?), what would the code be?

Sorry for bugging you, just wanted to get to the bottom of my issue XD

Default-user

Like I said above, this is something that requires URL rewriting to work. In a normal page request, you’re sending your request to PHP script, so it can look like this:

www.yoursite.com/script.php

If you were to remove the actual filename (script.php), your web server is left with no way to figure out what exactly the user wants from the server – that’s where mod_rewrite comes in – it basically says “hey, if the user asks for this, point him that way”.

So, if you go to the www.yoursite.com/articles/10 , your webserver is actually sending you to www.yoursite.com/script.php?article=10, internally.

Read the links I posted above, which explain this in greater detail.

Thecodingdude

That’s not what I am asking you, read my post again please.

I am asking, why does your docs say that URL is possible (read my above post again).

Okay, let me put it better (if you didn’t understand):

yoursite.com/articles/1-Hello-world!-the-very-first-article.

Your documentation says that line (I copied and pasted it).

How could I recreate that URL , because there is no .PHP file there (unless you’re using index.php of the articles directory).

Also, I’ve read through your ENTIRE documentation, and NOT ONCE does it mention any .PHP file, at all. (which is why I presumed it used mod_rewrite)

So using your logic, this doesn’t work. (“because the server is left no way of knowing where to go”)

Default-user

That’s merely an example, nowhere do I claim to be able to magically provide clean-urls. Such a URL must be achieved through the methods I mentioned above – SEOUrl is completely agnostic to the way you decide to handle routing, it’s merely a tool to describe the identifier fragment, and to decode it back into a usable element.

If you have any other questions, let me know.

Thecodingdude

Let me quote:

“With SEOUrl, IT CAN look like this. (notice IT and CAN )

yoursite.com/articles/1-Hello-world!-the-very-first-article.”

Now, where is the .PHP file in that URL hmmm?

If you want, I can also provide a screencapture for you.

You DO claim that’s what it can do, because you’ve wrote it can do that.

If that URL can’t be achieved, why is it in the documentation?

Default-user

Like I said, SEOUrl is agnostic to the method in which you decide to route your URLs – hence my claim that ‘it works anywhere’ – because it really does! – I do not claim, however, to provide internal URL -rewriting functionality; that’s a completely different domain.

The URL scheme I used in my example is completely irrelevant, since, once again, SEOUrl is agnostic to that.

If you have any more questions that are not baseless and grossly uninformed attacks on my work, I’ll be glad to help you.

If you wish to learn more about URL rewriting, you can refer to the links I posted above, or to these other resources:

http://www.yourhtmlsource.com/sitemanagement/urlrewriting.html

http://www.addedbytes.com/for-beginners/url-rewriting-for-beginners/

http://articles.sitepoint.com/article/guide-url-rewriting

Understanding these basic concepts is absolutely required for anyone wishing to progress in this industry. Good luck.

  • Bought between 1 and 9 items
  • Canada
  • Exclusive Author
  • Has been a member for 2-3 years
  • Sold between 100 and 1 000 dollars

This file looks a little simple, could one not just put:

<?php $url=$_GET[‘url’];

$value=explode(”-”,$url);

echo $value[‘0’];

?>

Seems to do the same thing. Sorry if I’m wrong.

Otherwise, if it did do the same thing, great marketing. ;)

Also, to go one step further, you could do what Thecodingdude said and include an .htaccess file.

RewriteEngine on

RewriteBase /

RewriteRule url/([/]+) url.php?url=$1 [NC]

I also hope this answers Thecodingdude’s question.

  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 100 and 1 000 dollars

Exactly, that was my point ^

I can’t see this as true SEO to be honest mate, this is exactly the same as ?url=Some-Article!-Title.

And that’s been around for years.

  • Bought between 1 and 9 items
  • Has been a member for 4-5 years

Hello.

Is it possible to implement this in OsCommerce website? and how?

Thanks.

  • Bought between 1 and 9 items
  • Has been a member for 1-2 years

Live demo is not working.. : (

  • Bought between 10 and 49 items
  • Has been a member for 3-4 years
  • Netherlands

Script seems to be unsupported by developer. Apparently the demo hasn’t worked in 5 months (seeing the previous comment).

And if I load the current demo I am still getting a 404. Great work!

  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 4-5 years

is this script still supported ?

  • Bought between 1 and 9 items
  • Has been a member for 0-1 years

Hello I wonder whether I can accomplish the fallowing..?

If I have a dynamic web, and For example the Url of a page is a result of a dynamic process. And looks like Mysite.com/cars/850#.RRptwXgg8

And the metadata is retrieved automatically and looks like <meta name=”title” content=”Cheap Ford Taurus in Paris” />

How can I reach that the Url will look like: Mysite.com/cars/Cheap-Ford-Taurus-in-Paris

Thanks


by
by
by
by
by