Welcome to WebmasterWorld Guest from 54.161.149.107

Forum Moderators: Ocean10000 & incrediBILL & phranque

Apart from working on .htaccess and enabling mod rewrite

How do I change the links in the script?

   
11:21 am on Dec 6, 2008 (gmt 0)

5+ Year Member



I am done with .htaccess file and have enabled mod_rewite.

I have understood what regular expressions are and how to create a rule.

Now I assume that I have to change the links in the script as well....(not sure though).

The links are dynamically generated. Each link opens up to a page where there are more links and those are also dynamically generated. And this goes on. Now this has become very confusing. How do I go about this?

Moreover, on each page, all the links are not related to a single php file. I mean the code to dispay the links at the different parts of a page does not belong to a single file......those are from separate files.....these files are 'included'. So do I need to change the links in each of these files?

12:37 pm on Dec 6, 2008 (gmt 0)

WebmasterWorld Senior Member g1smd is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



The URLs your visitors "see" are those in the links that they click on the pages of your site.

So yes, the links need to show the URL that you want the content to be known by.

The rules in ModRewrite simply take the URL request and translate it into where to get the content from within the server - without revealing what that location actually is.

 

Featured Threads

Hot Threads This Week

Hot Threads This Month