So it's time to do some transformations: URL transformation

Comprehensive data collection focused on Saudi Arabia's information.
Post Reply
zihadhasan019
Posts: 12
Joined: Sun Dec 22, 2024 4:42 am

So it's time to do some transformations: URL transformation

Post by zihadhasan019 »

Let's take a look at the 3 main areas of the URL that we will be working with: Base Domain Page Name Item Name The transformations provide benefits in the areas of SEO as well as usability for your visitors. If the new URL was placed onto a web-page or through a social networking site, it would be immediately evident where that link goes and what it offered to the visitor.


For search engines, imagine if the domain wa russia email list s Buy.com. The search engine would prioritize the following: Buy - Products - Zhu Zhu Pets. That's a pretty powerful URL before going into any other SEO optimizations. So let's get down to business. Writing your first Rewrite Rule Your website should already have a file called .htaccess in your domain's root folder. If you don't see it when you FTP into your website, it's probably hidden.




If using FileZilla, use the menu item Server > Force Show Hidden Files to make it visible. Here is what the file will contain or look like for the example above: Options +FollowSymLinks RewriteEngine on RewriteRule ^([A-Za-z0-9]+)/([A-Za-z0-9-]+)/?$ $1.php?item=$2 [QSA,L] Let's dissect this step-by-step.The first two lines are necessary to turn on mod_rewrite, so they can be copied and pasted verbatim. The key line is the RewriteRule. There are three primary sections: ^([A-Za-z0-9]+)/([A-Za-z0-9-]+)/?$ $1.php?item=$2 [QSA,L] The Source URL Part 1 is the source URL, defining what will be contained in the URL that the user will enter into the browser.
Post Reply