404 Error when I use URL rewriting!

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.
rakicko90
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Apr 30, 2010 10:09 pm

404 Error when I use URL rewriting!

Postby rakicko90 » Sat Sep 29, 2012 5:28 pm

Hi, i need help from you guys, i try to fix on my own, but i cant do it.
http://www.memoriesstudios.com.au
Front page are showing, but when click on some other page,
404 - File or directory not found.
I have file .htaccess on my root folder, and i dont know what the problem can be. Thanks in advance.

User avatar
MrCodexCY
Joomla! Guru
Joomla! Guru
Posts: 510
Joined: Wed Nov 03, 2010 7:35 pm
Location: Limassol, CY
Contact:

Re: 404 Error when I use URL rewriting!

Postby MrCodexCY » Sat Sep 29, 2012 5:59 pm

Hello mate

When you enabled URL rewriting did you delete your current .htaccess and rename the htaccess.txt file that was included in your Joomla installation to .htaccess ?

~Artemis
Providing quality web design services since 2005!

Get direct Joomla! assistance, contact me on skype: mrcodexcy

rakicko90
Joomla! Apprentice
Joomla! Apprentice
Posts: 11
Joined: Fri Apr 30, 2010 10:09 pm

Re: 404 Error when I use URL rewriting!

Postby rakicko90 » Sat Sep 29, 2012 6:05 pm

It is not my site, i am doing small work on it and when i check ftp, i already had .htaccess, i dont think that is a problem, but i can download new joomla and replace file if you think that that will fix it.

User avatar
MrCodexCY
Joomla! Guru
Joomla! Guru
Posts: 510
Joined: Wed Nov 03, 2010 7:35 pm
Location: Limassol, CY
Contact:

Re: 404 Error when I use URL rewriting!

Postby MrCodexCY » Sun Sep 30, 2012 3:47 am

Well that's what cause the problem most of the times, just do it and report if it doesn't work.

~Artemis
Providing quality web design services since 2005!

Get direct Joomla! assistance, contact me on skype: mrcodexcy

SimonHayter
Joomla! Guru
Joomla! Guru
Posts: 530
Joined: Tue Nov 29, 2011 2:43 pm
Location: Bournemouth
Contact:

Re: 404 Error when I use URL rewriting!

Postby SimonHayter » Tue Oct 02, 2012 1:33 pm

I personally prefer AceSEF as they have a basic free plugin and module which does the trick.

Jullian442
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Mon Oct 08, 2012 4:33 am
Location: USA

Re: 404 Error when I use URL rewriting!

Postby Jullian442 » Tue Oct 09, 2012 4:39 am

404 error usually appears on the screen when there is nothing available in the site or currently the site is busy at the moment. Sometimes you find the data after restarting your internet and computer or simply by repairing the internet.
Last edited by ooffick on Sat Oct 20, 2012 1:38 pm, edited 2 times in total.
Reason: Mod Note: Removed manual Signature. Please read the Forum rules for details.

Gretel
Joomla! Apprentice
Joomla! Apprentice
Posts: 10
Joined: Tue Jun 14, 2011 9:43 pm
Location: Mexico, Distrito Federal
Contact:

Re: 404 Error when I use URL rewriting!

Postby Gretel » Tue Oct 09, 2012 6:01 am

Hi!, the same thing happened to me when clicking in any link in the menu item. Select all menus and click the Rebuild button from the Menu Manager.
Gretel

SubjectX
Joomla! Apprentice
Joomla! Apprentice
Posts: 42
Joined: Tue Jan 15, 2013 10:56 pm

Re: 404 Error when I use URL rewriting!

Postby SubjectX » Thu Jun 13, 2013 12:22 pm

This ^^ worked for me, just wait a minute of two for cache to expire..

sharonbetts49
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Sep 03, 2013 9:47 pm

Re: 404 Error when I use URL rewriting!

Postby sharonbetts49 » Tue Sep 03, 2013 10:16 pm

This did not work for me - any other suggestions?

User avatar
pishro
Joomla! Explorer
Joomla! Explorer
Posts: 285
Joined: Tue Oct 09, 2012 7:22 am

Re: 404 Error when I use URL rewriting!

Postby pishro » Mon Sep 16, 2013 10:52 pm

sharonbetts49 wrote:This did not work for me - any other suggestions?

What do you mean?
If you mean the title of this post (use URL rewriting), please read this article:
Enabling Search Engine Friendly (SEF) URLs

TomZn333
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Wed Aug 01, 2012 6:18 pm

Re: 404 Error when I use URL rewriting!

Postby TomZn333 » Fri Feb 07, 2014 5:07 am

OK, I am having this problem with a Joomla 2.5.11 site. I have renamed the htaccess.txt file to .htaccess. My URLs are (example) www.tomharris.us/index.php/coaching, but I want to get rid of the index.php in the URL. When I select Yes for Use URL Rewriting, I get 404s on all pages (except the Home page). The exact message is:
Not Found
The requested URL /about was not found on this server.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I have a couple of other J 2.5 sites that have never had this issue. One is a 2.5.11 and one is a 2.5.2.
I can't see any differences between these sites.
Any ideas?
Thanks!
Tom Harris

DennisU
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Tue Feb 11, 2014 9:19 pm

Re: 404 Error when I use URL rewriting!

Postby DennisU » Tue Feb 11, 2014 9:22 pm

found the solution for me, and also the solution for the other person in this discussion:

http://docs.joomla.org/Enabling_Search_ ... endly_(SEF)_URLs_on_Apache

The problem for me and for the other person was that the website wasn't running on the domain, but in a subfolder after the backslash.

defarris
Joomla! Apprentice
Joomla! Apprentice
Posts: 5
Joined: Wed Oct 20, 2010 3:26 am
Location: Florida
Contact:

Re: 404 Error when I use URL rewriting!

Postby defarris » Mon Apr 21, 2014 2:03 pm

Possible solution.
I had a site running on a MAC via MAMP. Site was in a folder in the /htdocs.
SEF was on and RewriteBase/ was set correctly
.htaccess was named properly.
and there was no remnant htaccess.txt file either.

[but it just wouldn't ####n work for this site]
I noticed that the icon for .htaccess didn't seem correct (should have had espresso icon as that's my default .htaccess editor)

I tried a Get Info and noticed that the "actual" file name was ".htaccess.txt" but the extension was hidden so I couldn't see the txt in my every day use. The only way I could remove the txt extension was to do so in the Get Info.
This fixed everything.

Hope this helps.

nhatrangfriend
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Mon Apr 21, 2014 3:33 pm
Location: Nha Trang
Contact:

Re: 404 Error when I use URL rewriting!

Postby nhatrangfriend » Mon Apr 21, 2014 3:40 pm

Well. Can manage and update higher joomla can fix it right away.
http://www.nhatrangfriendly.com

liva_b
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Tue Apr 29, 2014 8:28 am

Re: 404 Error when I use URL rewriting!

Postby liva_b » Tue Apr 29, 2014 2:11 pm

Hello!

The same thing - 404 when enable URL rewriting.

Tried to rename .htaccess, but not sure if I rename the correct file. I use wampserver, site is on my localhost. I renamed the .htaccess in wamp/www folder. Is it the correct file?

I have mod_rewrite on
Use joomla 3.2 (I see this is joomla 2.5 forum, but it seemed more relevant to post in topic for this error)

Thanks in advance!
Liva

Naoki_H
Joomla! Apprentice
Joomla! Apprentice
Posts: 18
Joined: Sat May 24, 2014 8:58 am
Location: JP
Contact:

Re: 404 Error when I use URL rewriting!

Postby Naoki_H » Sat May 24, 2014 10:36 am

I wonder if there is any sure shot solution to the 404 url rewriting. :(

diburto
Joomla! Fledgling
Joomla! Fledgling
Posts: 2
Joined: Tue Jun 19, 2012 3:50 pm

Re: 404 Error when I use URL rewriting!

Postby diburto » Mon Mar 23, 2015 7:59 pm

I had this problem this afternoon. For whatever reason, my .htaccess file had nothing in it. I downloaded the .htaccess file from another site with the same version of Joomla, uploaded it to the site in question and everything works fine.

xtremeux
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Tue Jan 25, 2011 7:15 am
Location: Ahmedabad, Gujarat (India)
Contact:

Re: 404 Error when I use URL rewriting!

Postby xtremeux » Fri Jul 10, 2015 9:40 am

There are some important tips that you need to consider.
You should use 301 redirects rather than 302 redirects when redirecting URLs on a site.
404 Error means web page not found. Web pages those return 404 - File Not Found for extended periods of time and that have valuable links should be 301 redirected to other web pages.
It is important to have customized 404 pages with recommended navigational options when website visitors request pages that return a 404 response code.

wimpie995
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Jul 13, 2015 9:04 am

Re: 404 Error when I use URL rewriting!

Postby wimpie995 » Mon Jul 13, 2015 9:14 am

If you get a 404 error when using URL rewriting in global configuration -joomla dont stress :)

This is how to get it working:

Step 1 : Go to Filezilla and connect to the domain you are using.
Step 2 : Go to the public.html folder and look for htaccess.txt file.
step 3 : drag the file to your desktop and open it in notepad.When you are in notepad (ctrl + F) find the
# RewriteBase / line.
step 4: Remove the # - # RewriteBase / must now look like this - RewriteBase /
step 5: Save the notepad file as .htaccess
Step 6: Delete the original htaccess.txt file out of filezilla and add the .htaccess file in its place.

Now go to your joomla global configuration and by your SEO Settings make "Use URL Rewriting" - YES

Your index.php will be gone on the live site and it will only display the domain name now followed by the alias.

It worked on 5 different websites I am Using So hope this advice will help :)

Wimpie :)

MiltonK
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Mon Apr 04, 2016 2:17 am

Re: 404 Error when I use URL rewriting!

Postby MiltonK » Sun Apr 17, 2016 4:50 am

wimpie995 wrote:If you get a 404 error when using URL rewriting in global configuration -joomla dont stress :)

This is how to get it working:

Step 1 : Go to Filezilla and connect to the domain you are using.
Step 2 : Go to the public.html folder and look for htaccess.txt file.
step 3 : drag the file to your desktop and open it in notepad.When you are in notepad (ctrl + F) find the
# RewriteBase / line.
step 4: Remove the # - # RewriteBase / must now look like this - RewriteBase /
step 5: Save the notepad file as .htaccess
Step 6: Delete the original htaccess.txt file out of filezilla and add the .htaccess file in its place.

Now go to your joomla global configuration and by your SEO Settings make "Use URL Rewriting" - YES

Your index.php will be gone on the live site and it will only display the domain name now followed by the alias.

It worked on 5 different websites I am Using So hope this advice will help :)

Wimpie :)



Works in Joomla version 3.5.1.

Thanks!


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

Who is online

Users browsing this forum: No registered users and 2 guests