Page 1 of 1
[Solved] Running Blind - SEF URLs
Posted: Tue Sep 11, 2012 3:29 pm
by Reds
Hey,
So I'm basically starting anew and trying to teach myself a few things that I know are possible, but having some troubles. I have Opencart running on a localhost setup with Xampp.
I followed the example set
http://forum.opencart.com/viewtopic.php?f=20&t=50023 there and now every time I click a link that has a SEO keyword.. It takes me back to the Xampp 'welcome' page.
It's probably something really simple again that's staring me in the face, but any help would be appreciated! =)
Re: Running Blind - SEF URLs
Posted: Tue Sep 11, 2012 3:58 pm
by Axansh
HI,
I assumed that you have followed following steps :
1. Rename the ".htaccess.txt" file in your document root to ".htaccess" and
2. Turn on SEO Urls in the admin "System > Settings > Edit > Server > Use SEO URLs".
Now please try this :
Edit your .htaccess file.
# SEO URL Settings
RewriteEngine On
RewriteBase /your_sub_directory_name/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Hope it works.
Re: Running Blind - SEF URLs
Posted: Tue Sep 11, 2012 4:09 pm
by Reds
That fixed it for me, thank you very much! =D
Re: [Solved] Running Blind - SEF URLs
Posted: Tue Oct 02, 2012 6:47 pm
by ALandi
Hi guys.
My .htaccess file is empty. Any suggestion??? I've enabled SEO URL's: in admin system/ server and it is not working. Confirm with my host provider and the server has apache module mod-rewrite installed.
I've tryed pasting the info below in the file but didn't work also.
# SEO URL Settings
RewriteEngine On
RewriteBase /your_sub_directory_name/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([^?]*) index.php?_route_=$1 [L,QSA]
Thanks guys.
Re: [Solved] Running Blind - SEF URLs
Posted: Tue Oct 02, 2012 7:13 pm
by ALandi
Some additional info:
I use 1.5.3.1. version of opencart.
There is no htacess.txt in my public_html folder.
Thanks
Re: [Solved] Running Blind - SEF URLs
Posted: Sat Mar 16, 2013 6:22 pm
by shalini12
Hi, It may be that the dot (.) files are hidden. If you are using Control panel based installation, when you will click on "File Manager" you would get a pop up. There will be an option to show hidden files. Enable it.
Regards!
Shalini.