473,395 Members | 2,783 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

RewriteRule for SEO friendly URLs

258 100+
Hi everyone

I'v built a website and now I'm stuck with writing .htaccess file

I know many people would say the time for SEO fiendly URLs is over but I still need to find a way to do this. (Some customers want what they want)

Here is what I need :

I have 2 index.php files.

First one is here :
www.example.com/index.php

And it might contain up to 4 different variables like this :
?category=val1&keyword=val2&sortby=val3&pag=val4

Here is what it should look like in the URL :
www.example.com/val1/val2/val3/val4.html

The last one should end with .html

Then the second index.php file is located here :
www.example.com/product/index.php

This URL allways contains 1 variable which is the product id : ?prdid=1234

This should also end with .html
www.example.com/1234.html

There is a tool in the link below which works fine with changing variable to folders but I couldn't figure out how to change the url to .html files

http://www.webmaster-toolkit.com/mod_rewrite-rewriterule-generator.shtml


Any help whould be highly appreciated

Thanks
Jun 15 '10 #1
1 1972
bnashenas1984
258 100+
anyone?
I realy need to fix this.
Jun 16 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Shabam | last post by:
I'm interested in converting dynamic urls to something that looks static so that they're more search engine friendly. Instead of www.domain.com/script.aspx?userid=1234 I'd like to have it as...
4
by: moondaddy | last post by:
I've made the decision to use search engine friendly URLs in my site which means translating stripping all parameters our of the URL and converting it to a hierarchical URL like this: Change:...
2
by: | last post by:
Apache has a look-back feature that lets it scan back down the URL if it doesn't find what it is looking for. For example: http://www.domain.com/article.php/999/12 In this above case there is no...
2
by: Jose | last post by:
Hi All, Could someone explain how the following functionality is implemented? In modern "Web 2.0" sites user "profiles" (this is just one example) are visible by a URL like...
4
by: Geoff Berrow | last post by:
I've been trying to use .htaccess to get Apache to recognise 'article' as 'article.php' so I can have search engine friendly urls in the form article/var1/var2/var3 etc I have this in a...
1
by: anthonykallay | last post by:
Hi there, I am trying to rewrite my url's for SEO purposes and have read this great article below http://weblogs.asp.net/scottgu/archive/2007/02/26/tip-trick-url-rewri... I can follow...
8
by: Bruno Rafael Moreira de Barros | last post by:
I have this framework I'm building in PHP, and it has Search Engine Friendly URLs, with site.com/controller/page/args... And on my View files, I have <?=$this->baseURL;?to print the base URL on the...
2
by: flickle1 | last post by:
Hi, I created a website in PHP www.poundsback.com and i want to know how to make Friendly URL's if you browse the website you will see that some of the urls are quite long in size. I heard...
8
by: raamay | last post by:
i have been trying a hell lot to achieve the task of cleaning my urls but has not been able to succed. I downloaded the example codes from...
5
by: dhruvjha | last post by:
I'd like to take the following URL: http://www.website.com/index.php?url=about-us and turn it into : http://www.website.com/about-us and aso http://www.website.com/about-us.php I have...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.