The Joomla! Forum ™



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.



Post new topic Reply to topic  [ 12 posts ] 
Author Message
 Post subject: Custom URL's
PostPosted: Wed Feb 15, 2012 12:49 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 07, 2012 3:23 pm
Posts: 20
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


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Wed Feb 15, 2012 1:04 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 07, 2012 3:23 pm
Posts: 20
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


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Wed Feb 15, 2012 1:08 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 07, 2012 3:23 pm
Posts: 20
hmmm it works if i type in

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


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Sat Feb 18, 2012 1:25 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Aug 30, 2008 6:03 pm
Posts: 48
Location: MartForum.Com
How did you get yours to work on .html?

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


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Sun Feb 19, 2012 11:26 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 07, 2012 3:23 pm
Posts: 20
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 :)


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Sun Feb 19, 2012 11:28 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Feb 07, 2012 3:23 pm
Posts: 20
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


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Sun Feb 19, 2012 12:01 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 21, 2010 3:35 pm
Posts: 37
Location: Madrid (Spain)
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


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Sun Feb 19, 2012 4:22 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Aug 30, 2008 6:03 pm
Posts: 48
Location: MartForum.Com
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


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Sun Feb 19, 2012 6:31 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 21, 2010 3:35 pm
Posts: 37
Location: Madrid (Spain)
¿Do you have mod_redirect enabled in your apache?

_________________
Soporte técnico Joomla en Español: http://www.expertosjoomla.es


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Sun Feb 19, 2012 6:32 pm 
User avatar
Joomla! Apprentice
Joomla! Apprentice

Joined: Tue Sep 21, 2010 3:35 pm
Posts: 37
Location: Madrid (Spain)
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


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Sun Feb 19, 2012 9:50 pm 
Joomla! Apprentice
Joomla! Apprentice

Joined: Sat Aug 30, 2008 6:03 pm
Posts: 48
Location: MartForum.Com
@ NachoBrito you are good. I Just enabled it and it worked.

Thank you very much!


Top
 Profile  
 
 Post subject: Re: Custom URL's
PostPosted: Mon Feb 20, 2012 7:03 am 
Joomla! Fledgling
Joomla! Fledgling

Joined: Mon Feb 20, 2012 6:38 am
Posts: 3
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 :)


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 12 posts ] 



Who is online

Users browsing this forum: No registered users and 20 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group