Custom URL's

Discuss Search Engine Optimization in relation to Joomla! 2.5. This forum will also have discussions on SEF/SEO Joomla! 2.5 extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Locked
shroomla
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Feb 07, 2012 3:23 pm

Custom URL's

Post by shroomla » Wed Feb 15, 2012 12:49 pm

Hi guys,

One of my old sites went down and I need to recreate the same pages - hopefully with joomla.

The url's must be the same as the old ones (google adwords history), so I need my site to have url's like this (examples):

www.mysite.com/quick-loans.php
www.mysite.com/best-payday-loans.php
www.mysite.com/secured-loans.php
www.mysite.com/fast-loan.php

etc etc

I can't find anywhere where i can change the url's in the backend of joomla but i may be missing something. there must be a way to specify your own url's ?

I liked the idea of using joomla for this as i can duplicate articles and menu items and change the content saving me a bit of time.

Any help would be very much appreciated.

Thanks

shroomla
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Feb 07, 2012 3:23 pm

Re: Custom URL's

Post by shroomla » Wed Feb 15, 2012 1:04 pm

Ok, some progress:

I changed htaccess.txt to .htaccess then

Global Configuration / use url rewriting set to yes / add suffix to yes

Now i can goto mysite.com/payday-loan but if i try
mysite.com/payday-loan.php I get an error

I need the custom urls to end in .php how can i acheive this ? I thought the suffix option would do this.

Thanks

shroomla
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Feb 07, 2012 3:23 pm

Re: Custom URL's

Post by shroomla » Wed Feb 15, 2012 1:08 pm

hmmm it works if i type in

mysite.com/payday-loan.html - how can i change this to end in .php

Okoji
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sat Aug 30, 2008 6:03 pm
Contact:

Re: Custom URL's

Post by Okoji » Sat Feb 18, 2012 1:25 pm

How did you get yours to work on .html?

I need to make mine html put it is not even working for me.

shroomla
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Feb 07, 2012 3:23 pm

Re: Custom URL's

Post by shroomla » Sun Feb 19, 2012 11:26 am

I followed the steps outlined in my second post ie
shroomla wrote: 1. change htaccess.txt to .htaccess - this file is in your joomla root (where you uploaded your joomla files to)

2. In joomla: Under the site tab goto Global Configuration / use url rewriting set to yes / add suffix to yes
Those two steps will allow the .html by default. Make sure you do step 1 before step 2 to avoid 404 errors.

Good luck, hope I have been of help :)

shroomla
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Tue Feb 07, 2012 3:23 pm

Re: Custom URL's

Post by shroomla » Sun Feb 19, 2012 11:28 am

Back to my issue ie getting the .php to work

I found out that the file i need to edit is apparently includes/router.php

someone out there must've had this issue and know the code I need to change to get this to change the url's to .php instead of .html ?

Any help would be greatly appreciated

User avatar
NachoBrito
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Tue Sep 21, 2010 3:35 pm
Location: Madrid (Spain)
Contact:

Re: Custom URL's

Post by NachoBrito » Sun Feb 19, 2012 12:01 pm

I think the 'html' suffix is hardcoded in Joomla code. The only way to change it is by using a SEF extension lkie JoomSEF (http://extensions.joomla.org/extensions ... t/sef/1063)
Soporte técnico Joomla en Español: http://www.expertosjoomla.es

Okoji
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sat Aug 30, 2008 6:03 pm
Contact:

Re: Custom URL's

Post by Okoji » Sun Feb 19, 2012 4:22 pm

Hi,

I am getting error 500.

--
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, admin@localhost and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

----------

I am using wamp server.

Please help me out.

Thank you.
Okoji

User avatar
NachoBrito
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Tue Sep 21, 2010 3:35 pm
Location: Madrid (Spain)
Contact:

Re: Custom URL's

Post by NachoBrito » Sun Feb 19, 2012 6:31 pm

¿Do you have mod_redirect enabled in your apache?
Soporte técnico Joomla en Español: http://www.expertosjoomla.es

User avatar
NachoBrito
Joomla! Apprentice
Joomla! Apprentice
Posts: 37
Joined: Tue Sep 21, 2010 3:35 pm
Location: Madrid (Spain)
Contact:

Re: Custom URL's

Post by NachoBrito » Sun Feb 19, 2012 6:32 pm

Sorry, a meant mod_rewrite...

¿Do you have mod_rewrite enabled in your apache?
Soporte técnico Joomla en Español: http://www.expertosjoomla.es

Okoji
Joomla! Apprentice
Joomla! Apprentice
Posts: 48
Joined: Sat Aug 30, 2008 6:03 pm
Contact:

Re: Custom URL's

Post by Okoji » Sun Feb 19, 2012 9:50 pm

@ NachoBrito you are good. I Just enabled it and it worked.

Thank you very much!

vikasbook
Joomla! Fledgling
Joomla! Fledgling
Posts: 3
Joined: Mon Feb 20, 2012 6:38 am
Contact:

Re: Custom URL's

Post by vikasbook » Mon Feb 20, 2012 7:03 am

shroomla wrote:I followed the steps outlined in my second post ie
shroomla wrote: 1. change htaccess.txt to .htaccess - this file is in your joomla root (where you uploaded your joomla files to)

2. In joomla: Under the site tab goto Global Configuration / use url rewriting set to yes / add suffix to yes
Those two steps will allow the .html by default. Make sure you do step 1 before step 2 to avoid 404 errors.

Good luck, hope I have been of help :)

Thanks for the information Now I can use my preferably extension :)


Locked

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 2.5”